[hibernate-dev] Introduce OperationContext in 5.3?

Gail Badner gbadner at redhat.com
Thu Mar 1 15:24:09 EST 2018


Hi,

HHH-10478 is currently scheduled for 6.0.0.alpha1. What do you think about
introducing it into 5.3.0 instead?

Using an OperationContext would be a less hacky way to fix HHH-3799
(PersistentSet does not honor hashcode/equals contract when loaded eagerly).

It would be nice to remove operation-specific fields from
StatefulPersistenceContext:

private int cascading;
private int loadCounter;
private int removeOrphanBeforeUpdatesCounter;
private boolean flushing;
private boolean defaultReadOnly;
private boolean hasNonReadOnlyEntities;

private LoadContexts loadContexts;

Without using an Operation context, the fix for HHH-3799would add something
like:

private boolean isEntityLoading;

Regards,
Gail


More information about the hibernate-dev mailing list