Re: Order By Expression

2010-03-16 Thread Filipe Costa
Hi Dave, Maybe you want something like this: SelectQuery select = new SelectQuery(classE, restriction); select.addOrdering(orderBy, orderAscending); List list = cayenneConnector.performQuery(select); See more at: http://cayenne.apache.org/doc20/using-orderings.html Hope that help.

Select By ID

2008-12-09 Thread Filipe Costa
Hi all, I'm creating a new project and I chosed to use Cayenne 2.4. The thing is that I want to make a simple "Select By Id" query (auto generated id), but it seems it is not possible! Can anyone help me? If there are no way of selecting by an Id, how you can make basic functionality like a tabl