HHH-6499 : NPE can be thrown by some implementations of Helper.ValueSourcesAdapter.isIncludedInInsertByDefault() and isIncludedInUpdateByDefault()
This commit is contained in:
parent
ab72eb05ec
commit
ca1c77d9f6
|
@ -92,12 +92,12 @@ class PropertyAttributeSourceImpl implements SingularAttributeSource {
|
|||
|
||||
@Override
|
||||
public boolean isIncludedInInsertByDefault() {
|
||||
return propertyElement.isInsert();
|
||||
return Helper.getBooleanValue( propertyElement.isInsert(), true );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIncludedInUpdateByDefault() {
|
||||
return propertyElement.isUpdate();
|
||||
return Helper.getBooleanValue( propertyElement.isUpdate(), true );
|
||||
}
|
||||
},
|
||||
bindingContext
|
||||
|
|
|
@ -77,7 +77,7 @@ class VersionAttributeSourceImpl implements SingularAttributeSource {
|
|||
|
||||
@Override
|
||||
public boolean isIncludedInInsertByDefault() {
|
||||
return versionElement.isInsert();
|
||||
return Helper.getBooleanValue( versionElement.isInsert(), true );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue