summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2012-09-07 00:21:18 +0000
committerBrian S. O'Neill <bronee@gmail.com>2012-09-07 00:21:18 +0000
commit775e8cdc24709e22e91fa861370dd68ca3490dba (patch)
tree3463f8da94e41643498173c1b17b6345e794141f
parent312cdf3fea757b9602d997922f0bdb19c6dded04 (diff)
Independent annotation disables null check for version properties.
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java2
1 files changed, 1 insertions, 1 deletions
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");