From: Emmanuel B. (JIRA) <no...@at...> - 2006-07-21 12:50:16
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-396?page=comments#action_23718 ] Emmanuel Bernard commented on ANN-396: -------------------------------------- there is an open bug with no workaround. It probably won't be fixed actually. The proper answer is to test your object graph before, in your business layer. This is very trivially done in JBoss Seam (an annotation on the business methods that need validation before beeing proceeded > 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 |