mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-17257 ElementCollection is missing elements after update if embeddable type has primitive columns marked as nullable
This commit is contained in:
parent
b95035c950
commit
30aec8b8ff
@ -385,7 +385,7 @@ private boolean finishInitialization(
|
||||
length = column.getLength();
|
||||
precision = column.getPrecision();
|
||||
scale = column.getScale();
|
||||
nullable = column.isNullable();
|
||||
nullable = bootPropertyDescriptor.isOptional() && column.isNullable() ;
|
||||
selectablePath = basicValue.createSelectablePath( column.getQuotedName( dialect ) );
|
||||
}
|
||||
else {
|
||||
@ -393,7 +393,7 @@ private boolean finishInitialization(
|
||||
length = null;
|
||||
precision = null;
|
||||
scale = null;
|
||||
nullable = true;
|
||||
nullable = bootPropertyDescriptor.isOptional();
|
||||
selectablePath = basicValue.createSelectablePath( bootPropertyDescriptor.getName() );
|
||||
}
|
||||
attributeMapping = MappingModelCreationHelper.buildBasicAttributeMapping(
|
||||
|
Loading…
x
Reference in New Issue
Block a user