HHH-7915 Include referenced columns when creating foreign keys from the included table

This commit is contained in:
chris-manning 2013-01-10 10:58:45 +00:00 committed by Brett Meyer
parent 10930af516
commit 7ef045ae2c
1 changed files with 2 additions and 1 deletions

View File

@ -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()
);
}
}