HHH-15520 ValueGeneration on @OneToOne leads to boot error

This commit is contained in:
Andrea Boriero 2022-09-19 14:48:10 +02:00 committed by Andrea Boriero
parent 0720631d2e
commit 9bd8a9518c
1 changed files with 3 additions and 1 deletions

View File

@ -273,7 +273,9 @@ public class PropertyBinder {
prop.setPropertyAccessorName( accessType.getType() );
if ( property != null ) {
prop.setValueGenerationStrategy( determineValueGenerationStrategy( property ) );
if ( entityBinder != null ) {
prop.setValueGenerationStrategy( determineValueGenerationStrategy( property ) );
}
if ( property.isAnnotationPresent( AttributeAccessor.class ) ) {
final AttributeAccessor accessor = property.getAnnotation( AttributeAccessor.class );