An example from migrating from H5 to H6 for Keycloak. This happens with Hibernate 6.2.CR4, and used to work with Hibernate 5:
- In Quarkus, the default is hibernate.order_updates is set to true in FastBootMetadataBuilder
- Given updating two entities with a compsite key / IdClass which references its parent entity, it tries to compare the EntityKey, which fails in H6, but worked in H5
- On flush, the comparison fails with the exception shown below when Hibernate tries to sort the updates
There is a reproducer here: https://github.com/ahus1/hibernate-test-case-templates/tree/is-HHH-xxxx-compare-not-implemented-for-entity-type Discussed on the Zulip chat here: https://hibernate.zulipchat.com/#narrow/stream/132096-hibernate-user
|