HHH-13579 Add comment to InlineDirtyChekingHandler

This commit is contained in:
Davide D'Alto 2019-12-11 16:35:41 +00:00 committed by Sanne Grinovero
parent 0251473c87
commit 57a45dab19
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ final class InlineDirtyCheckingHandler implements Implementation, ByteCodeAppend
&& persistentField.hasAnnotation( Embedded.class ) ) {
// HHH-13759 - Call getter on superclass if field is not visible
// An embedded field won't be visible if declared private in a superclass
// annotated with @MappedSuperclass
Advice.WithCustomMapping advice = Advice.withCustomMapping();
advice = persistentField.isVisibleTo( managedCtClass )
? advice.bind( CodeTemplates.FieldValue.class, persistentField.getFieldDescription() )