Last active
September 10, 2015 17:20
-
-
Save sebersole/b7608a0863c2f6e8750c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for ( Entry<Object, EntityEntry> objectEntityEntryEntry : entityEntryContext.reentrantSafeEntityEntries() ) { | |
// todo : I dont think this need be reentrant safe | |
if ( objectEntityEntryEntry.getKey() instanceof PersistentAttributeInterceptable ) { | |
final PersistentAttributeInterceptor interceptor = ( (PersistentAttributeInterceptable) objectEntityEntryEntry.getKey() ).$$_hibernate_getInterceptor(); | |
if ( interceptor instanceof LazyAttributeLoader ) { | |
( (LazyAttributeLoader) interceptor ).unsetSession(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment