mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 03:38:16 +00:00
HHH-10708 : Fix bug due to backporting (SPI does not exist in 5.0)
This commit is contained in:
parent
33e16f2788
commit
9c840739db
@ -163,7 +163,8 @@ public static void processReachableCollection(
|
||||
//TODO: better to pass the id in as an argument?
|
||||
ce.setCurrentKey( type.getKeyOfOwner( entity, session ) );
|
||||
|
||||
final boolean isBytecodeEnhanced = persister.getOwnerEntityPersister().getInstrumentationMetadata().isEnhancedForLazyLoading();
|
||||
final boolean isBytecodeEnhanced =
|
||||
persister.getOwnerEntityPersister().getEntityMetamodel().isLazyLoadingBytecodeEnhanced();
|
||||
if ( isBytecodeEnhanced && !collection.wasInitialized() ) {
|
||||
// skip it
|
||||
LOG.debugf(
|
||||
|
Loading…
x
Reference in New Issue
Block a user