HHH-9704 - Complete HHH-8805 work on 5.0;
HHH-9709 - @ForeignKey
This commit is contained in:
parent
22ca7125f7
commit
b7273d93a2
|
@ -2912,11 +2912,11 @@ public final class AnnotationBinder {
|
|||
}
|
||||
else {
|
||||
final ForeignKey fk = property.getAnnotation( ForeignKey.class );
|
||||
if ( fk != null && StringHelper.isEmpty( fk.name() ) ) {
|
||||
if ( fk != null && StringHelper.isNotEmpty( fk.name() ) ) {
|
||||
value.setForeignKeyName( fk.name() );
|
||||
}
|
||||
else if ( joinColumn != null ) {
|
||||
value.setForeignKeyName( joinColumn.foreignKey().name() );
|
||||
value.setForeignKeyName( StringHelper.nullIfEmpty( joinColumn.foreignKey().name() ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue