diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/RowImpl.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/RowImpl.java index ce012a8b4..b59a47c53 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/RowImpl.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/RowImpl.java @@ -675,8 +675,11 @@ public class RowImpl throws SQLException { // never set auto increment columns and honor column defaults if (_action == ACTION_INSERT) { - if (col.isAutoAssigned()) + if (col.isAutoAssigned()) { + // OPENJPA-349: validate because this can be the only column + setValid(true); return; + } if (!overrideDefault && val == null && col.getDefaultString() != null) return;