HHH-10708 : Fix bug due to backporting (SPI does not exist in 5.0)

This commit is contained in:
Gail Badner 2016-05-20 19:14:13 -07:00
parent 33e16f2788
commit 9c840739db
1 changed files with 2 additions and 1 deletions

View File

@ -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(