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 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
|
||||||
length = column.getLength();
|
length = column.getLength();
|
||||||
precision = column.getPrecision();
|
precision = column.getPrecision();
|
||||||
scale = column.getScale();
|
scale = column.getScale();
|
||||||
nullable = column.isNullable();
|
nullable = bootPropertyDescriptor.isOptional() && column.isNullable() ;
|
||||||
selectablePath = basicValue.createSelectablePath( column.getQuotedName( dialect ) );
|
selectablePath = basicValue.createSelectablePath( column.getQuotedName( dialect ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -393,7 +393,7 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme
|
||||||
length = null;
|
length = null;
|
||||||
precision = null;
|
precision = null;
|
||||||
scale = null;
|
scale = null;
|
||||||
nullable = true;
|
nullable = bootPropertyDescriptor.isOptional();
|
||||||
selectablePath = basicValue.createSelectablePath( bootPropertyDescriptor.getName() );
|
selectablePath = basicValue.createSelectablePath( bootPropertyDescriptor.getName() );
|
||||||
}
|
}
|
||||||
attributeMapping = MappingModelCreationHelper.buildBasicAttributeMapping(
|
attributeMapping = MappingModelCreationHelper.buildBasicAttributeMapping(
|
||||||
|
|
Loading…
Reference in New Issue