Skip to content

Commit

Permalink
Update hibernate-core/src/main/java/org/hibernate/mapping/Denormalize…
Browse files Browse the repository at this point in the history
…dTable.java

Include referenced columns when creating foreign keys from the included table
  • Loading branch information
chris-manning authored and brmeyer committed Aug 21, 2013
1 parent 10930af commit 8768c00
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -51,7 +51,8 @@ public void createForeignKeys() {
createForeignKey(
Constraint.generateName( fk.generatedConstraintNamePrefix(), this, fk.getColumns() ),
fk.getColumns(),
fk.getReferencedEntityName()
fk.getReferencedEntityName(),
fk.getReferencedColumns()
);
}
}
Expand Down

0 comments on commit 8768c00

Please sign in to comment.