| Hello I have folowing relation: Team has members + Team has optional relation to coach. Member and Coach is the same class Person hibernate.order_inserts=true throws ConstraintViolationException because of wrong order of inserts, disabling hibernate.order_inserts=false and code works fine. In my opinion there is problem in algorithm of sorting because you don't look at optional attribute of relation |