[hibernate-issues] [Hibernate-JIRA] Commented: (HV-320) JPATraversableResolver fails if the annotated property does not have a getter

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue May 25 06:04:54 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37267#action_37267 ] 

Emmanuel Bernard commented on HV-320:
-------------------------------------

That's a bug in the JPA-API.
We need to use getDeclaredField / getDeclaredMethod but also take superclasses into account (as getDeclared* stay at the class level).

> JPATraversableResolver fails if the annotated property does not have a getter 
> ------------------------------------------------------------------------------
>
>                 Key: HV-320
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-320
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 4.1.0.Beta1
>            Reporter: Hardy Ferentschik
>            Assignee: Emmanuel Bernard
>             Fix For: 4.1.0
>
>
> Using HV in combination with the latest Entity Manager you seems to get an exception in case your validation is on a property which does not define a getter - see https://forum.hibernate.org/viewtopic.php?f=9&t=1004480

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