summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-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");