From 8acdbab275950eade070488e7487d7841acbf7c7 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Thu, 14 Mar 2019 14:38:36 -0700 Subject: [PATCH] HHH-13236 Maintain the old behaviour for non-composite types for better backward compatibility --- .../persister/collection/AbstractCollectionPersister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java index 2f819888b9..c8a9a67cf9 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java @@ -361,7 +361,7 @@ public abstract class AbstractCollectionPersister elementColumnIsGettable[j] = true; if ( elementType.isComponentType() ) { // Implements desired behavior specifically for @ElementCollection mappings. - elementColumnIsSettable[j] = oneToMany || columnInsertability[j]; + elementColumnIsSettable[j] = columnInsertability[j]; } else { // Preserves legacy non-@ElementCollection behavior