[hibernate-issues] [Hibernate-JIRA] Created: (ANN-727) AccessType not being inherited correctly when using @CollectionOfElements
Kenny MacLeod (JIRA)
noreply at atlassian.com
Tue Apr 22 03:43:33 EDT 2008
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
Reporter: Kenny MacLeod
Priority: Minor
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