From: Celso G. B. Jr (JIRA) <no...@at...> - 2006-07-21 13:29:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-396?page=comments#action_23719 ] Celso Gomes Barreto Jr commented on ANN-396: -------------------------------------------- It's a pity that we can't rely on Hibernate calling Hibernate Validator just before an insert or update operation :( Well, at least no with NotNull constraints. Could you please post the key for the original bug this one duplicates so that we can watch it? > NotNull validator doesn't work > ------------------------------ > > Key: ANN-396 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-396 > Project: Hibernate Annotations > Type: Bug > Versions: 3.2.0.cr1 > Environment: Hibernate 3.2.0 CR2 > Hibernate Annotations 3.2.0 cr1 > Reporter: Celso Gomes Barreto Jr > Priority: Critical > > > Hibernate is throwing org.hibernate.PropertyValueException instead of org.hibernate.validator.InvalidStateException with @NotNull. > A much better description from this problem (also a workaround) is avaiable at http://www.nearinfinity.com/blogs/page/jkunkle?entry=notnull_hibernate_annotation_validation_problems -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |