HHH-8269 DenormalizedTable FK constraint names can be too long
This commit is contained in:
parent
a826f2b1ac
commit
7fad06da4a
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue