| I've successfully backported to 5.1 branch but I'll need some help backporting to 5.0 branch. The master fix relies on EntityPersister.getInstrumentationMetadata().isEnhancedForLazyLoading(). In master and 5.1, EntityPersister#getInstrumentationMetadata returns BytecodeEnhancementMetadata. In 5.0, EntityPersister#getInstrumentationMetadata returns EntityInstrumentationMetadata, which does not define a method #isEnhancedForLazyLoading. For 5.0, it looks like EntityPersister.getEntityMetamodel().isLazyLoadingBytecodeEnhanced() should be used instead. Is that correct? Also, I'm getting NoClassDefFoundError when I try to run the test test case. Steve Ebersole, Luis Barreiro, could one of you please take a look at my pull request: https://github.com/hibernate/hibernate-orm/pull/1375 ? |