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() ) {
|
while ( iter.hasNext() ) {
|
||||||
ForeignKey fk = (ForeignKey) iter.next();
|
ForeignKey fk = (ForeignKey) iter.next();
|
||||||
createForeignKey(
|
createForeignKey(
|
||||||
fk.getName() + Integer.toHexString( getName().hashCode() ),
|
Constraint.generateName( fk.generatedConstraintNamePrefix(), this, fk.getColumns() ),
|
||||||
fk.getColumns(),
|
fk.getColumns(),
|
||||||
fk.getReferencedEntityName()
|
fk.getReferencedEntityName()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue