From 1b82649d84c1f1d233952625f7149d64fb68bc2b Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Thu, 26 Feb 2009 19:07:58 +0000 Subject: Don't check if independent properties are set. This fixes a regression in which independent properties did not work as advertised. --- .../java/com/amazon/carbonado/gen/MasterStorableGenerator.java | 7 +++++-- src/main/java/com/amazon/carbonado/gen/StorableGenerator.java | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/gen') diff --git a/src/main/java/com/amazon/carbonado/gen/MasterStorableGenerator.java b/src/main/java/com/amazon/carbonado/gen/MasterStorableGenerator.java index 21af6cf..afb1a29 100644 --- a/src/main/java/com/amazon/carbonado/gen/MasterStorableGenerator.java +++ b/src/main/java/com/amazon/carbonado/gen/MasterStorableGenerator.java @@ -459,9 +459,12 @@ public final class MasterStorableGenerator { ordinal++; if (property.isDerived() - || property.isJoin() || property.isPrimaryKeyMember() + || property.isIndependent() + || property.isJoin() + || property.isPrimaryKeyMember() || property.isNullable() - || property.isAutomatic() || property.isVersion()) + || property.isAutomatic() + || property.isVersion()) { continue; } diff --git a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java index 87dede1..204508c 100644 --- a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java +++ b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java @@ -2338,11 +2338,11 @@ public final class StorableGenerator { private void addIsInitializedMethod (String name, Map> properties) { - // Don't check Automatic properties. + // Don't check Automatic, Independent, or Version properties. { boolean cloned = false; for (StorableProperty prop : properties.values()) { - if (prop.isAutomatic() || prop.isVersion()) { + if (prop.isAutomatic() || prop.isIndependent() || prop.isVersion()) { if (!cloned) { properties = new LinkedHashMap>(properties); cloned = true; -- cgit v1.2.3