Hibernate inserts the entities in the wrong order when batching is enabled and hibernate.order_inserts=true. This leads to a f
hibernate.order_inserts=true