cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject cayenne git commit: CAY-2084 ObjectIdQuery - no cache access polymorphism
Date Thu, 19 May 2016 10:43:36 GMT
Repository: cayenne
Updated Branches:
  refs/heads/STABLE-3.1 bcd12eaf5 -> 83ca8fe44


CAY-2084 ObjectIdQuery - no cache access polymorphism

also affects relationship query


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/83ca8fe4
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/83ca8fe4
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/83ca8fe4

Branch: refs/heads/STABLE-3.1
Commit: 83ca8fe4475ed639f1becacf3bea8a444c07f675
Parents: bcd12ea
Author: Andrus Adamchik <andrus@objectstyle.com>
Authored: Thu May 19 12:57:35 2016 +0300
Committer: Andrus Adamchik <andrus@objectstyle.com>
Committed: Thu May 19 13:41:28 2016 +0300

----------------------------------------------------------------------
 .../java/org/apache/cayenne/access/DataDomainQueryAction.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/83ca8fe4/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
----------------------------------------------------------------------
diff --git a/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
b/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
index f3fa5ef..5a53f2b 100644
--- a/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
+++ b/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
@@ -266,7 +266,8 @@ class DataDomainQueryAction implements QueryRouter, OperationObserver
{
                 return DONE;
             }
 
-            DataRow targetRow = cache.getCachedSnapshot(targetId);
+            // target id resolution (unlike source) should be polymorphic
+            DataRow targetRow = polymorphicRowFromCache(targetId);
 
             if (targetRow != null) {
                 this.response = new GenericResponse(Collections.singletonList(targetRow));


Mime
View raw message