Skip to content

Commit

Permalink
liquibase#692 Update PrimaryKeySnapshotGenerator.java. Utilize PK ord…
Browse files Browse the repository at this point in the history
…ering
  • Loading branch information
novakfrobert authored Apr 26, 2024
1 parent 62209da commit 8d48fa5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) thro
pk.setName(pkName);

pk.setTable(table);
for (org.hibernate.mapping.Column hibernateColumn : hibernatePrimaryKey.getColumns()) {
for (org.hibernate.mapping.Column hibernateColumn : hibernatePrimaryKey.getOrderingUniqueKey().getColumns()) {
pk.getColumns().add(new Column(hibernateColumn.getName()).setRelation(table));
}

Expand Down

0 comments on commit 8d48fa5

Please sign in to comment.