I am still experiencing similar issue with hibernate 5.2.12. Model can be persisted only without hibernate.order_inserts option enabled but without it inserts are not arranged to batches. (foreign key violation) Persist works without ordering