HHH-7915 Include referenced columns when creating foreign keys from the included table
This commit is contained in:
parent
10930af516
commit
7ef045ae2c
|
@ -51,7 +51,8 @@ public class DenormalizedTable extends Table {
|
|||
createForeignKey(
|
||||
Constraint.generateName( fk.generatedConstraintNamePrefix(), this, fk.getColumns() ),
|
||||
fk.getColumns(),
|
||||
fk.getReferencedEntityName()
|
||||
fk.getReferencedEntityName(),
|
||||
fk.getReferencedColumns()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue