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 final class Collections {
|
|||
//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…
Reference in New Issue