Hi,
looking at the source code of Hibernate, at org.hibernate.engine.ActionQueue class, my question is:
why the execute actions are in this order: 'insertions', 'updates', 'collectionRemovals', 'collectionUpdates', 'collectionCreations', 'deletions' ?
which problems can occur at database if I move the execution of 'collectionRemovals' and 'deletions' to the top of action list ?
Code:
public void executeActions() throws HibernateException {
executeActions( collectionRemovals ); // my change
executeActions( deletions ); // my change
executeActions( insertions );
executeActions( updates );
executeActions( collectionUpdates );
executeActions( collectionCreations );
}