[hibernate-issues] [Hibernate-JIRA] Updated: (ANN-841) Bidirectional indexed collection mapped incorrectly for IndexedCollectionTest
Gail Badner (JIRA)
noreply at atlassian.com
Fri Jun 5 17:47:13 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner updated ANN-841:
----------------------------
Attachment: org.hibernate.test.annotations.indexcoll.IndexedCollectionTest-output.txt
Attaching an output file that's more readable.
> Bidirectional indexed collection mapped incorrectly for IndexedCollectionTest
> -----------------------------------------------------------------------------
>
> Key: ANN-841
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-841
> Project: Hibernate Annotations
> Issue Type: Bug
> Reporter: Gail Badner
> Assignee: Emmanuel Bernard
> Attachments: org.hibernate.test.annotations.indexcoll.IndexedCollectionTest-output.txt
>
>
> I believe that two bidirectional associations with indexed collections that use join tables are mis-mapped for org.hibernate.test.annotations.indexcoll.IndexedCollectionTest.
> Mappings in AddressBook:
> @MapKey
> @OneToMany(mappedBy = "book", cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REMOVE})
> @JoinTable(name="AddRegEntry")
> public Map<AddressEntryPk, AddressEntry> getEntries() {
> return entries;
> }
> @MapKey(name = "directory")
> @OneToMany(mappedBy = "book")
> @JoinTable(name="Dir_Entry")
> public Map<AlphabeticalDirectory, AddressEntry> getDirectoryEntries() {
> return directoryEntries;
> }
> Mappings in AddressEntry:
> @ManyToOne
> public AddressBook getBook() {
> return book;
> }
> @ManyToOne
> public AlphabeticalDirectory getDirectory() {
> return directory;
> }
> AddRegEntry and Dir_Entry are not generated in the DDL and the CRUD operations do not reference the join tables.
> Test output is attached.
--
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