We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef2a17 commit 780f511Copy full SHA for 780f511
hibernate-core/src/main/java/org/hibernate/engine/internal/EntityEntryImpl.java
@@ -311,11 +311,9 @@ public void postLoad(Object entity) {
311
processIfSelfDirtinessTracker( entity, EntityEntryImpl::clearDirtyAttributes );
312
processIfManagedEntity( entity, EntityEntryImpl::useTracker );
313
314
- if ( persister.isMutable() ) {
315
- if ( persistenceContext.getSession() instanceof SessionImplementor session ) {
316
- session.getFactory().getCustomEntityDirtinessStrategy()
317
- .resetDirty( entity, persister, session );
318
- }
+ if ( persister.isMutable() && persistenceContext.getSession() instanceof SessionImplementor session ) {
+ session.getFactory().getCustomEntityDirtinessStrategy()
+ .resetDirty( entity, persister, session );
319
}
320
321
0 commit comments