cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lachlan Deck <>
Subject split expressions
Date Wed, 13 Jan 2010 04:13:28 GMT
Hi there (particularly Andrus),

I notice in CAY-514[1] that there's a split syntax using the pipe symbol that works for matchAll
expressions. Is this the only possible way of achieving split expressions?

If we have two expressions (initialised separately - but combined for the select) that happen
to be testing the same keyPath across a toMany is it possible to enforce similar behaviour

Expression e1 ="cousins.firstName", "fred");
Expression e2 ="cousins.firstName", "joe");
Expression e = e1.andExp(e2);

The resulting sql removes duplicate joins and thus produces no results.

Trying with pipes fails to resolve the paths:
Expression e1 ="cousins.|firstName", "fred");
Expression e2 ="cousins.|firstName", "joe");
// throws exceptions at runtime

So is it possible to make this work other than using matchAll?


with regards,

Lachlan Deck

View raw message