From: Celso G. B. Jr (JIRA) <no...@at...> - 2006-07-20 22:37:14
|
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 |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-07-20 23:38:15
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-396?page=all ] Emmanuel Bernard resolved ANN-396: ---------------------------------- Resolution: Duplicate The workaround does not work > 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 |
From: Celso G. B. Jr (JIRA) <no...@at...> - 2006-07-21 12:43:15
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-396?page=comments#action_23716 ] Celso Gomes Barreto Jr commented on ANN-396: -------------------------------------------- Emmanuel I saw your post on Jedd Kubkle blog saying that the workaround doesn't work on entities persisted by cascade. It's good to know this, I haven't test this situation. I also saw that the status was changed to Duplicate. What is the original bug that this one duplicates? Is there any definitive workaround or else a true fix? > 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 |
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 |
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 |