Re: Select By ID

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Tue Dec 09 2008 - 11:55:07 EST

  • Next message: Pierre Lavignotte: "Re: Select By ID"

    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 <nevco..mail.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
    >



    This archive was generated by hypermail 2.0.0 : Tue Dec 09 2008 - 11:55:35 EST