HHH-15440 @OneToOne and @OptimisticLock(excluded = true) not working correctly

This commit is contained in:
Andrea Boriero 2022-08-16 16:15:02 +02:00 committed by Andrea Boriero
parent 357444fb3c
commit 95c14ada90
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ public class OneToOneSecondPass implements SecondPass {
PropertyBinder binder = new PropertyBinder(); PropertyBinder binder = new PropertyBinder();
binder.setName( propertyName ); binder.setName( propertyName );
binder.setProperty( inferredData.getProperty() );
binder.setValue( value ); binder.setValue( value );
binder.setCascade( cascadeStrategy ); binder.setCascade( cascadeStrategy );
binder.setAccessType( inferredData.getDefaultAccess() ); binder.setAccessType( inferredData.getDefaultAccess() );