Bug 177 : BeanPersistController.preInsert() firing after validation ... so validation can fail
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.2.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
18/11/2009
Updated 
18/11/2009
Type 
Bug
 
Attachments 
No attachments

The field validation is firing earlier than the BeanPersistController.preInsert(). This means that if a property is populated via the perInsert() method .. and it has a NotNull field then the validation will fail.

 
Rob 18 Nov 09:55
Fixed in HEAD

Fixed - moved the validation to fire after any preInsert or preUpdate.

woResponse

Upload a file