From 86a8106696cd56bfd19082a4cec43f1ea8ebf5e6 Mon Sep 17 00:00:00 2001 From: Nathan Xu Date: Mon, 10 Feb 2020 08:32:11 -0500 Subject: [PATCH] correct an obvious coding bug --- .../event/internal/DefaultSaveOrUpdateEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/event/internal/DefaultSaveOrUpdateEventListener.java b/hibernate-core/src/main/java/org/hibernate/event/internal/DefaultSaveOrUpdateEventListener.java index 0d2a23ab1a..e5363d11d5 100644 --- a/hibernate-core/src/main/java/org/hibernate/event/internal/DefaultSaveOrUpdateEventListener.java +++ b/hibernate-core/src/main/java/org/hibernate/event/internal/DefaultSaveOrUpdateEventListener.java @@ -123,7 +123,7 @@ public class DefaultSaveOrUpdateEventListener extends AbstractSaveEventListener } else { - final boolean isEqual = !entityEntry.getPersister().getIdentifierType() + final boolean isEqual = entityEntry.getPersister().getIdentifierType() .isEqual( requestedId, entityEntry.getId(), factory ); if ( isEqual ) {