[hibernate-issues] [Hibernate-JIRA] Updated: (ANN-727) AccessType not being inherited correctly when using @CollectionOfElements

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sat May 31 14:59:33 EDT 2008


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

Emmanuel Bernard updated ANN-727:
---------------------------------

    Affects Version/s: 3.3.0.ga

> AccessType not being inherited correctly when using @CollectionOfElements
> -------------------------------------------------------------------------
>
>                 Key: ANN-727
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-727
>             Project: Hibernate Annotations
>          Issue Type: Bug
>          Components: binder
>    Affects Versions: 3.3.0.ga
>            Reporter: Kenny MacLeod
>            Priority: Minor
>             Fix For: 3.4.1
>
>         Attachments: BugTestCase.java
>
>
> See attached test case.  
> To summarise, I have two @Entity classes, one of which contains a single @Embeddable ComponentA, the other of which contains a @CollectionOfElements of ComponentA.  ComponentA in turn contains an instance of the @Embeddable ComponentB.  
> Both @Entity classes have the @Id on an instance field, so I understand that means that all embedded components should inherit that access type.
> The test works fine for the @Entity which contains the single instance of ComponentA, but fails with an exception with the @Entity which contains the @CollectionOfElements.  For some reason, the access type behaviour is lost when it gets to ComponentB - but only when I use @CollectionOfElements.
> If I explicitly annotate ComponentB with @AccessType("field"), it works fine - but I shouldn't have to.

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