HHH-15520 ValueGeneration on @OneToOne leads to boot error

This commit is contained in:
Andrea Boriero 2022-09-19 14:32:30 +02:00 committed by Andrea Boriero
parent e931a8062d
commit 8a886039ec
1 changed files with 5 additions and 3 deletions

View File

@ -317,10 +317,12 @@ public class PropertyBinder {
property.setReturnedClassName( returnedClassName );
if ( this.property != null ) {
handleNaturalId( property );
property.setValueGenerationStrategy( determineValueGenerationStrategy(this.property) );
if ( entityBinder != null ) {
handleNaturalId( property );
property.setValueGenerationStrategy( determineValueGenerationStrategy( this.property ) );
}
// HHH-4635 -- needed for dialect-specific property ordering
property.setLob( this.property.isAnnotationPresent(Lob.class) );
property.setLob( this.property.isAnnotationPresent( Lob.class ) );
}
property.setInsertable( insertable );