[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6051) Set default-access type to "field" to prevent org.hibernate.PropertyNotFoundExcetion

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Mon Apr 19 08:59:49 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12526440#action_12526440 ] 

Max Rydahl Andersen commented on JBIDE-6051:
--------------------------------------------

I don't understand what you mean here - we should do the normal detection but set access="field" if we found the property by looking for fields and use access="property" if we found it via get/set methods.


> Set default-access type to "field" to prevent org.hibernate.PropertyNotFoundExcetion
> ------------------------------------------------------------------------------------
>
>                 Key: JBIDE-6051
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-6051
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.1.0.CR2
>            Reporter: Dmitry Geraskov
>            Assignee: Max Rydahl Andersen
>             Fix For: 3.1.1, 3.2.next
>
>
> When there is no getter or setter in the class an exception occurs:
> org.hibernate.PropertyNotFoundException: Could not find a setter for property id in class ...
> To prevent this use defauilt-acess="field" in the mapping in New Hibernate Mapping file wizard.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list