Closed
Description
Paul Sterl opened DATAMONGO-1393 and commented
Basically the following line is missing in the ValidatingMongoEventListener:
final Object target = obj instanceof LazyLoadingProxy ? ((LazyLoadingProxy) obj).getTarget() : obj;
as otherwise the validation is done on the proxy object and so always fails.
Details:
http://sterl.org/2016/03/spring-data-mongodb-jsr-validation/
Affects: 1.8.4 (Gosling SR4)
Reference URL: http://sterl.org/2016/03/spring-data-mongodb-jsr-validation/
Referenced from: pull request #350