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

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon May 24 08:23:56 EDT 2010


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

Hardy Ferentschik commented on HV-320:
--------------------------------------

The problem lies in {{PersistenceUtilHelper.get(Object proxy, String property)}} which calls {{Class.getField}} and {{Class.getMethod}} instead of the {{getDeclaredXYZ}} counterparts. {{getField}} will only return public fields. Need to check whether there is a reason for that.

> 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: Hardy Ferentschik
>             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