Revert "Create workaround for "UnsupportedOperationException: compare() not implemented for EntityType""

With the update Hibernate 6.2.0.Final this is no longer needed.

Closes #19321

This reverts commit 71bcb409c4f6a1251ce18f32cfd68e4ae528abb3.
This commit is contained in:
Alexander Schwartz 2023-03-31 09:55:26 +02:00 committed by Václav Muzikář
parent 02b0683053
commit 143a3bc7ac

View file

@ -323,12 +323,6 @@ class KeycloakProcessor {
if (storage != null && Objects.equals(storage.getValue(), StorageOptions.StorageType.jpa.name())) {
// if JPA map storage is enabled, pass on the property to 'EventListenerIntegrator' to activate the necessary event listeners for JPA map storage
unitProperties.setProperty(EventListenerIntegrator.JPA_MAP_STORAGE_ENABLED, Boolean.TRUE.toString());
} else {
// With the update to Hibernate 6.2.CR3, when updating multiple entities with a composite key and non-primitive parameters,
// this started to fail with the legacy store. As a workaround, ordering updates is disabled.
// This might have a negative performance impact for batch updates, and should therefore be reverted.
// https://github.com/keycloak/keycloak/issues/19321
unitProperties.setProperty(AvailableSettings.ORDER_UPDATES, Boolean.FALSE.toString());
}
unitProperties.setProperty(AvailableSettings.QUERY_STARTUP_CHECKING, Boolean.FALSE.toString());