cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky" <razumovsky.and...@gmail.com>
Subject Re: Select By ID
Date Tue, 09 Dec 2008 16:55:07 GMT
Have a look at DataObjectUtils.objectForPK(...) methods.
Here's a bit more detailed answer:
http://cayenne.apache.org/doc/objectidquery.html

2008/12/9 Filipe Costa <nevcos@gmail.com>

> 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 table where you can delete some specific row? "Delete
> USER where name = 'name'" is not a good option... neither creating a new
> key
> column to do this.
>
> Thanks in advance.
>
> Cheers
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message