HHH-7328: Modified Binder to ensure referenced entity names are package-qualified

This commit is contained in:
John Verhaeg 2012-05-23 10:50:32 -05:00
parent 7ecdb53e31
commit 46ddcd8414
1 changed files with 3 additions and 3 deletions

View File

@ -343,9 +343,9 @@ public class Binder {
org.hibernate.internal.util.Value< Class< ? >> referencedJavaTypeValue = createSingularAttributeJavaType( attribute );
final String referencedEntityName =
attributeSource.getReferencedEntityName() != null
bindingContext().qualifyClassName( attributeSource.getReferencedEntityName() != null
? attributeSource.getReferencedEntityName()
: referencedJavaTypeValue.getValue().getName();
: referencedJavaTypeValue.getValue().getName() );
final EntityBinding referencedEntityBinding = entityBinding( referencedEntityName );
// Foreign key...
@ -1529,7 +1529,7 @@ public class Binder {
.append( attributeBinding.getAttribute().getName() )
.toString();
}
private Column createColumn(
final TableSpecification table,
final ColumnSource columnSource,