In a particular case as described below, order-inserts = true causes FK Violation, while order-inserts = false does not: # A (a self-referential Entity) is inherited by both B and C using Single_Table inheritance strategy. # We have created entites as so: C1 -> B1 -> C2 -> A1, where C1, C2, B1 and A1 are entities of types C,C,B and A respectively. # When persisting C1, an FK Violation is thrown. # In attached testcases [^hibernate-unit-test-case-queue.zip] , it is also observed that the order of inserts of some entities referred to by A,B or C gets ruined and causes FK violations different from observed with above case.
Both above cases are included in the attached test cases. Is this a limitation of the order_inserts feature, a bug or am I missing an accepted workaround? |
|