diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/PropertyAttributeSourceImpl.java b/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/PropertyAttributeSourceImpl.java index 7ddfc39702..248e78505f 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/PropertyAttributeSourceImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/PropertyAttributeSourceImpl.java @@ -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 diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/VersionAttributeSourceImpl.java b/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/VersionAttributeSourceImpl.java index c7735b9d44..5ca9b0ae61 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/VersionAttributeSourceImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/VersionAttributeSourceImpl.java @@ -77,7 +77,7 @@ class VersionAttributeSourceImpl implements SingularAttributeSource { @Override public boolean isIncludedInInsertByDefault() { - return versionElement.isInsert(); + return Helper.getBooleanValue( versionElement.isInsert(), true ); } @Override