HHH-6499 : NPE can be thrown by some implementations of Helper.ValueSourcesAdapter.isIncludedInInsertByDefault() and isIncludedInUpdateByDefault()

This commit is contained in:
Gail Badner 2011-07-28 08:47:09 -07:00
parent ab72eb05ec
commit ca1c77d9f6
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -77,7 +77,7 @@ class VersionAttributeSourceImpl implements SingularAttributeSource {
@Override
public boolean isIncludedInInsertByDefault() {
return versionElement.isInsert();
return Helper.getBooleanValue( versionElement.isInsert(), true );
}
@Override