Skip to content

Commit 9bd8a95

Browse files
committed
HHH-15520 ValueGeneration on @OnetoOne leads to boot error
1 parent 0720631 commit 9bd8a95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ public Property makeProperty() {
273273
prop.setPropertyAccessorName( accessType.getType() );
274274

275275
if ( property != null ) {
276-
prop.setValueGenerationStrategy( determineValueGenerationStrategy( property ) );
276+
if ( entityBinder != null ) {
277+
prop.setValueGenerationStrategy( determineValueGenerationStrategy( property ) );
278+
}
277279

278280
if ( property.isAnnotationPresent( AttributeAccessor.class ) ) {
279281
final AttributeAccessor accessor = property.getAnnotation( AttributeAccessor.class );

0 commit comments

Comments
 (0)