Community
Participate
Working Groups
When using a mapped super class the generated hbm.xml and hence the generated DDL holds duplicate constraints. The problem is that constraint name is always copied from the mapped-super-class: MyBaseClass(=mapped-super-class) + person: Person MySubClass extends MyBaseClass: + ... MySubClass2 extends MyBaseClass: + ... The FK-Constraint name is derived from the MyBaseClass and results in MYBASECLASS_PERSON and is now applied to the MySubClass and MySubClass2. The correct solution is to check if the FK-Constraint is coming from a mapped super class and prefix it with the concrete class.
Fixed in latest teneo build