[hibernate-dev] Introduce OperationContext in 5.3?

Steve Ebersole steve at hibernate.org
Thu Mar 1 16:38:13 EST 2018


I'm ok with it, but only if it's going to be ready in 2 weeks


On Thu, Mar 1, 2018, 2:32 PM Gail Badner <gbadner at redhat.com> wrote:

> 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
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list