HHH-13236 Maintain the old behaviour for non-composite types for better backward compatibility

This commit is contained in:
Gail Badner 2019-03-14 14:38:36 -07:00 committed by gbadner
parent 86be5321d8
commit 8acdbab275
1 changed files with 1 additions and 1 deletions

View File

@ -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