You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hibernate 6.4 added the capability to order primary key columns by defining a Unique Index containing all the PK columns. See this hibernate issue and the relevant Hibernate PR.
I think liquibase-hibernate can make use of this by updating the PrimaryKeySnapshot.
From: hibernatePrimaryKey.getColumns()
To: hibernatePrimaryKey.getOrderingUniqueKey().getColumns()
That way we can order primary keys via an annotated java model and have liquibase accurately report differences, ie: if the primary key is out of order.
The text was updated successfully, but these errors were encountered:
novakfrobert
added a commit
to novakfrobert/liquibase-hibernate
that referenced
this issue
Apr 26, 2024
Hibernate 6.4 added the capability to order primary key columns by defining a Unique Index containing all the PK columns. See this hibernate issue and the relevant Hibernate PR.
I think liquibase-hibernate can make use of this by updating the PrimaryKeySnapshot.
From:
hibernatePrimaryKey.getColumns()
To:
hibernatePrimaryKey.getOrderingUniqueKey().getColumns()
That way we can order primary keys via an annotated java model and have liquibase accurately report differences, ie: if the primary key is out of order.
The text was updated successfully, but these errors were encountered: