Hibernate version: 3.2.0
Hi,
If you have an Embeddable component two times in a class, I am getting the error Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: tavant.twms.domain.claim.PartsClaim column: referred_inventory_item (should be mapped with insert="false" update="false")
even after setting attribute overrides values
Code:
class A {
@Embedded
C someRef;
}
class B extends A {
@Embedded
@AttributeOverrides (...override to point to different columns...)
C someOtherRefInstance;
}
class C {
String name;
}
Now class B that extends A has two instances of embeddable object from it. I am having a SingleTable Hierarchy inheritance. I ensured that AttributeOverrides points to different columns. Am I missing something here? Or is it a bug?