From 3159c8ff78f5020911dfea4e3c16b45b629e2f60 Mon Sep 17 00:00:00 2001 From: Jens Borrmann Date: Tue, 14 Jul 2020 11:10:02 +0200 Subject: [PATCH] HHH-14106 - Return entry from `#parentsByChild` in `StateFulPersistenceContext#getParentsByChild` --- .../hibernate/engine/internal/StatefulPersistenceContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java index df740d3f3a..c6c06ab686 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java @@ -1361,7 +1361,7 @@ public class StatefulPersistenceContext implements PersistenceContext { private Object getParentsByChild(Object childEntity) { if ( parentsByChild != null ) { - parentsByChild.get( childEntity ); + return parentsByChild.get( childEntity ); } return null; }