Try:
query.setFetchLimit(5);
> -----Original Message-----
> From: Fredrik Liden [mailto:flide..ranslate.com]
> Sent: Thursday, March 17, 2005 2:04 PM
> To: cayenne-use..bjectstyle.org
> Subject: Query question
>
> I'm retrieving from a list ordered by date and I want to view
> the last 5
> entries.
>
> Does anyone know how to limit the number of returned objects in the
> query?
> Thanks!
>
> Fredrik
>
>
This archive was generated by hypermail 2.0.0 : Thu Mar 17 2005 - 14:09:38 EST