[hibernate-issues] [Hibernate-JIRA] Resolved: (HV-360) DefaultTraversableResolver.isReachable() should be enhanced to return true for validations with group other than Default

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Mar 8 07:54:08 EST 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik resolved HV-360.
----------------------------------

    Resolution: Rejected

There was not feedback on this issue.

> DefaultTraversableResolver.isReachable() should be enhanced to return true for validations with group other than Default
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HV-360
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-360
>             Project: Hibernate Validator
>          Issue Type: Improvement
>          Components: engine
>    Affects Versions: 4.1.0.Final
>            Reporter: Georges-Etienne Legendre
>
> We use Bean Validator to validate transition between domain object states. We use groups to allow different validations for each state. When we want to change the state of an object, we get the object from the database (using JPA). However, because we use LAZY loading, only the loaded beans get validated. This causes problems because nothing is in fact validated (other than the first bean of course).
> I know the JSR tells that the default TraversableResolver should verify if JPA is in the classpath. However, this doesn't make sense when groups are used for the purpose described above. There are 2 workarounds:
> * Disable LAZY loading!
> * Implement a TraversableResolver that returns true for isReachable()
> However, I'm wondering if the DefaultTraversableResolver.isReachable() can be enhanced to return true for validations with group other than Default.

-- 
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

        


More information about the hibernate-issues mailing list