From 775e8cdc24709e22e91fa861370dd68ca3490dba Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 7 Sep 2012 00:21:18 +0000 Subject: Independent annotation disables null check for version properties. --- .../java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/amazon/carbonado/repo') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java index 924b045..3a3641e 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java @@ -359,7 +359,7 @@ public class JDBCStorableIntrospector extends StorableIntrospector { } if (columnInfo.nullable) { - if (!mainProperty.isNullable()) { + if (!mainProperty.isNullable() && !mainProperty.isIndependent()) { errorMessages.add ("Property \"" + mainProperty.getName() + "\" must have a Nullable annotation"); -- cgit v1.2.3