HHH-7915 Include referenced columns when creating foreign keys from the included table
This commit is contained in:
parent
2396e6b99e
commit
ad48fabc16
|
@ -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