HHH-8269 DenormalizedTable FK constraint names can be too long

This commit is contained in:
Brett Meyer 2013-05-25 20:24:53 -04:00
parent a826f2b1ac
commit 7fad06da4a
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public class DenormalizedTable extends Table {
while ( iter.hasNext() ) {
ForeignKey fk = (ForeignKey) iter.next();
createForeignKey(
fk.getName() + Integer.toHexString( getName().hashCode() ),
Constraint.generateName( fk.generatedConstraintNamePrefix(), this, fk.getColumns() ),
fk.getColumns(),
fk.getReferencedEntityName()
);