diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/VersionValue.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/VersionValue.java index 59d59c9e57..31b7c4608a 100755 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/VersionValue.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/VersionValue.java @@ -69,7 +69,7 @@ public class VersionValue implements UnsavedValueStrategy { @Override public final Boolean isUnsaved(Object version) { LOG.trace("Version unsaved-value strategy UNDEFINED"); - return version==null; + return version==null ? Boolean.TRUE : null; } @Override public Object getDefaultValue(Object currentValue) {