diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2009-10-15 22:06:16 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2009-10-15 22:06:16 +0000 |
commit | 5d9feb86cf7e8b7ea8e00d512f774c20d92e7365 (patch) | |
tree | 7cf90ce8f0fff3fad31756038a978ff799252b73 /src/main/java/com/amazon/carbonado/synthetic | |
parent | dab0e9f28993b774ae9c940d2af498d1e6e05789 (diff) |
Generated readFrom method sets properties states at the end, to ensure that adapted properties in the primary key can be always set.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/synthetic')
-rw-r--r-- | src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableReferenceBuilder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableReferenceBuilder.java b/src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableReferenceBuilder.java index 75f1701..9a44574 100644 --- a/src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableReferenceBuilder.java +++ b/src/main/java/com/amazon/carbonado/synthetic/SyntheticStorableReferenceBuilder.java @@ -418,7 +418,7 @@ public class SyntheticStorableReferenceBuilder<S extends Storable> TypeDesc masterStorableType = TypeDesc.forClass(mMasterStorableClass);
// Add a method which tests all properties of index entry object
- // against master object, excluding the version property.
+ // against master object, excluding version and derived properties.
{
TypeDesc[] params = new TypeDesc[] {masterStorableType};
MethodInfo mi = cf.addMethod
@@ -426,7 +426,7 @@ public class SyntheticStorableReferenceBuilder<S extends Storable> CodeBuilder b = new CodeBuilder(mi);
for (StorableProperty prop : mCommonProps) {
- if (prop.isVersion()) {
+ if (prop.isVersion() || prop.isDerived()) {
continue;
}
Label propsAreEqual = b.createLabel();
|