From 5d9feb86cf7e8b7ea8e00d512f774c20d92e7365 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Thu, 15 Oct 2009 22:06:16 +0000 Subject: Generated readFrom method sets properties states at the end, to ensure that adapted properties in the primary key can be always set. --- .../amazon/carbonado/synthetic/SyntheticStorableReferenceBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/synthetic') 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 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 CodeBuilder b = new CodeBuilder(mi); for (StorableProperty prop : mCommonProps) { - if (prop.isVersion()) { + if (prop.isVersion() || prop.isDerived()) { continue; } Label propsAreEqual = b.createLabel(); -- cgit v1.2.3