When two entities have OneToMany relationship to third entity and the collection name is same in both entities and nullable is set to false. Then exception written below is thrown.
Caused by: org.hibernate.MappingException: Duplicate property mapping of _parentsBackref found in cz.csas.persistence.test.Parent
... 58 more
Attached annotated entities.
I'm still seeing this in 4.1.8 with the following uni-directional mappings:
EntityEmailAddress doesn't have recipient_id mapped as colum.
I'll work on a repcoducable test-case if interessted.
Can someone re-open this issue so I can attach an example showing this isn't working?
There are two issues:
Issue 1; The field-mapping has the same name:
Caused by: org.hibernate.MappingException: Duplicate property mapping of _emailAddresses_recipient_idBackref found in org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.ondemand.OneToManyHHH5836Test$EmailAddress
Issue 2: The field-mapping has different name:
Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: org.hibernate.test.annotations.derivedidentities.e1.b.specjmapid.ondemand.OneToManyHHH5836Test$EmailAddress column: recipient_id (should be mapped with insert="false" update="false")
, this issue has already been closed and released in 4.1.8. If there is an additional issue, can you please open a new ticket? Thanks!
Ok, new issue created here: