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:36:24 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 8b63e2d30 -> 579160fa1


CAY-2084 ObjectIdQuery - no cache access polymorphism

also affects RelationshipQuery, but in  afewer places


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

Branch: refs/heads/master
Commit: 579160fa1b6190bd6fdfc94a49698255a2c75e44
Parents: 8b63e2d
Author: Andrus Adamchik <andrus@objectstyle.com>
Authored: Thu May 19 10:48:38 2016 +0300
Committer: Andrus Adamchik <andrus@objectstyle.com>
Committed: Thu May 19 13:32: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/579160fa/cayenne-server/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
b/cayenne-server/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
index 4f1f9eb..dc82017 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/access/DataDomainQueryAction.java
@@ -259,7 +259,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