cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-1796) ROP: All entity's to-many relationships getting faulted from database when using it as a parameter in qualifier expression.
Date Sun, 26 Jan 2014 16:53:38 GMT

     [ https://issues.apache.org/jira/browse/CAY-1796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik closed CAY-1796.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.1B3)
                   3.2.M2

Applied Oleg's patches. Looks great now. Unfortunately backporting this to 3.1 is not easy.
A prerequisite to that is  CAY-1860 that is only present in 3.2. So keeping this 3.2 feature
only. 

> 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
>             Fix For: 3.2.M2
>
>         Attachments: cay1796.patch, cay1796_2.patch, cay1796_3.patch, cay1796_v4.patch,
cay1796test.patch, cay1796test_v2.patch
>
>
> 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 artist'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 was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message