On 28 March 2017 at 10:03, Vlad Mihalcea <mihalcea.vlad(a)gmail.com> wrote:
There musts be a reason for choosing this ordering, but I can't
figure out
why the EntityDeleteAction was chosen to be executed last.
Isn't it simply to avoid foreign key constraints to explode? When you
update a reference to a foreign key *and* delete the previous target of
this reference in the same transaction, you want to execute the update
first and the delete last.
I can't imagine why orphan removals are executed first, though.
Yoann Rodière <yoann(a)hibernate.org>
Hibernate NoORM Team