Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1M3
-
None
-
None
Description
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.
I am sure this affects ALL versions of Cayenne, but my testing is done on 3.1 M3/M4