How is Hibernate deciding order of update/insert/delete
The problem you describe is not handled by the database, and from my experience is not entirely handled by Hibernate either. You have to take explicit steps to avoid it being a problem. Hibernate does some of the work for you. As per the previous answer, Hibernate ensures that within an isolated flush the inserts, … Read more