diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index 895a5da7c663..6f9180d9e36e 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -1051,6 +1051,11 @@ public DeleteCoordinator getDeleteCoordinator() { return deleteCoordinator; } + @Internal + public UpdateCoordinator getMergeCoordinator() { + return mergeCoordinator; + } + public String getVersionSelectString() { return sqlVersionSelectString; } diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/MergeCoordinator.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/MergeCoordinator.java index 33449233d83c..7db29d7385c6 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/MergeCoordinator.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/MergeCoordinator.java @@ -24,7 +24,7 @@ public MergeCoordinator(AbstractEntityPersister entityPersister, SessionFactoryI } @Override - AbstractTableUpdateBuilder newTableUpdateBuilder(EntityTableMapping tableMapping) { + protected AbstractTableUpdateBuilder newTableUpdateBuilder(EntityTableMapping tableMapping) { return new TableMergeBuilder<>( entityPersister(), tableMapping, factory() ); } diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/UpdateCoordinatorStandard.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/UpdateCoordinatorStandard.java index f0831451785a..a09e7b1f82bc 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/UpdateCoordinatorStandard.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/UpdateCoordinatorStandard.java @@ -1088,7 +1088,7 @@ protected MutationOperationGroup generateDynamicUpdateGroup( return createOperationGroup( valuesAnalysis, updateGroupBuilder.buildMutationGroup() ); } - AbstractTableUpdateBuilder newTableUpdateBuilder(EntityTableMapping tableMapping) { + protected AbstractTableUpdateBuilder newTableUpdateBuilder(EntityTableMapping tableMapping) { return new TableUpdateBuilderStandard<>( entityPersister(), tableMapping, factory() ); }