From 4a0115c24f7eb72405ecdc2c2d4cc25af429e5e1 Mon Sep 17 00:00:00 2001 From: Tobias Holgers Date: Wed, 29 Apr 2009 00:48:35 +0000 Subject: Added @Derived(shouldCopy=true) to copy derived properties used as repository hints --- .../com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc') 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 0f8ab95..cecd7a9 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java @@ -73,6 +73,7 @@ import com.amazon.carbonado.info.StorablePropertyConstraint; * * @author Brian S O'Neill * @author Adam D Bradley + * @author Tobias Holgers */ public class JDBCStorableIntrospector extends StorableIntrospector { // Maps compound keys to softly referenced JDBCStorableInfo objects. @@ -1377,6 +1378,10 @@ public class JDBCStorableIntrospector extends StorableIntrospector { return mMainProperty.getDerivedToProperties(); } + public boolean shouldCopyDerived() { + return mMainProperty.shouldCopyDerived(); + } + public boolean isSupported() { if (isJoin()) { // TODO: Check if joined type is supported -- cgit v1.2.3