HHH-9704 - Complete HHH-8805 work on 5.0;

HHH-9709 - @ForeignKey
This commit is contained in:
Steve Ebersole 2015-04-02 17:14:40 -05:00
parent 22ca7125f7
commit b7273d93a2
1 changed files with 2 additions and 2 deletions

View File

@ -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() ) );
}
}