]
Emmanuel Bernard resolved HHH-4283.
-----------------------------------
Resolution: Fixed
Fix Version/s: 3.5
Done r18421
Nothing's too good for a happy Hudson ;)
Bidirectional indexed collection mapped incorrectly for
IndexedCollectionTest
-----------------------------------------------------------------------------
Key: HHH-4283
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4283
Project: Hibernate Core
Issue Type: Bug
Components: annotations
Reporter: Gail Badner
Assignee: Emmanuel Bernard
Fix For: 3.5
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: