cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1657) Expression: In memory comparion requires persistent to be in the same context to match
Date Fri, 27 Jan 2012 13:36:43 GMT
Expression: In memory comparion requires persistent to be in the same context to match
--------------------------------------------------------------------------------------

                 Key: CAY-1657
                 URL: https://issues.apache.org/jira/browse/CAY-1657
             Project: Cayenne
          Issue Type: Bug
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik



Artist a1 = // object from context1
Expression e = ExpressionFactory.matchExp(Painting.ARTIST_PROPERTY, a1);

Painting p2 = // object from context 2
assertTrue(e.match(p2)); 

The last assertion is always false, even though p2 may point to a1's clone in context2...
This is inconsistent with using expressions as qualifiers - qualifier parameters that are
instances of Persistent can reside in any context - matching works in a context-agnostic way.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message