cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Menard" <>
Subject Queries based on relationship size
Date Thu, 21 Feb 2008 01:05:59 GMT

I'm running into a little difficulty performing a query that I think
comes up often enough that it should be fairly straightforward.

I have a schema similar to the following:

Customer <--- BillingInfo <--- Order

I've mapped the read-only relationship "orderHistory" from Customer to

Now I'd like to perform two queries.  One for customers with orders and
one for customers without.  I'd rather not filter in the app itself
because I'd like to paginate the result lists.

Is there a way to do this without resulting to an SQLTemplate query?


Kevin Menard
Servprise International, Inc.
Remote reboot & power control for your network                  +1 508.892.3823 x308

View raw message