cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzmitry Kazimirchyk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1796) ROP: All entity's to-many relationships getting faulted from database when using it as a parameter in qualifier expression.
Date Tue, 19 Feb 2013 16:35:13 GMT
Dzmitry Kazimirchyk created CAY-1796:
----------------------------------------

             Summary: ROP: All entity's to-many relationships getting faulted from database
when using it as a parameter in qualifier expression.
                 Key: CAY-1796
                 URL: https://issues.apache.org/jira/browse/CAY-1796
             Project: Cayenne
          Issue Type: Bug
          Components: ROP
    Affects Versions: 3.1B2
            Reporter: Dzmitry Kazimirchyk


If entity is used as a parameter in qualifier expression all its unfaulted to-many relationships
are faulted prior to actual query sent to server. For example:

Expression exp = ExpressionFactory.matchExp(Painting.ARTIST_PROPERTY, artist);
context.performQuery(new SelectQuery(Painting.class, exp));

Before actual query will be sent to server all painting's to-many relationships will be faulted.
What I see is that in the process of query serialization on client side PersistentObjectList.size()
is invoked which triggers relationships' faulting from database.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message