As of
HHH-10251 Complete , ImmutableEntityEntry#persistenceContext is set to null, so stashing the PersistenceContext in the EntityEntryContext won't work. An alternative is to stash the EntityEntryContext in AbstractEntityEntry, but I'm not sure of the ramifications of doing that. |