diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2012-09-07 00:21:18 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2012-09-07 00:21:18 +0000 |
commit | 775e8cdc24709e22e91fa861370dd68ca3490dba (patch) | |
tree | 3463f8da94e41643498173c1b17b6345e794141f /src/main/java/com/amazon/carbonado/repo/jdbc | |
parent | 312cdf3fea757b9602d997922f0bdb19c6dded04 (diff) |
Independent annotation disables null check for version properties.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 2 |
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");
|