Re: [ANN] Cayenne 3.0M4 Released

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri May 30 2008 - 09:45:47 EDT

  • Next message: Andrus Adamchik: "Re: delete from ... where ... in (...)"

    On May 30, 2008, at 12:09 PM, Andrus Adamchik wrote:

    >>
    >> One other thing.Looking at
    >> http://cayenne.apache.org/doc/api/org/apache/cayenne/query/DeleteQuery.html
    >> ,
    >> is there a typo in class comment saying: "*Deprecated.* *since 3.0.
    >> Should
    >> be replaced either with EJBQL update query or SQLTemplate.*" Should
    >> there be
    >> EJBQLDelete?
    >
    > Good catch. There is no EJBQLDelete (for whatever reason JPA spec
    > does not define it, and we followed it here)... I guess we just need
    > to clarify the javadocs.

    Umm... sorry I misled you. There is no EJBQL *INSERT*, but there is
    most certainly a DELETE.

    EJBQLQuery delete = new EJBQLQuery("delete from Artist a where a.id in
    (1, 2, 3)");

    (id has to be an object property).

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri May 30 2008 - 09:46:19 EDT