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