> (I posted this first to c.l.j.p, but I realized it's more appropriate
> here.)
[quoted text clipped - 25 lines]
> that still gets the same error message (with "delete from" in the
> message).
I guess you should not use a query object for an update, insert or
delete,
just queries.
david.karr - 27 Mar 2007 03:07 GMT
On Mar 26, 5:31 pm, "joeNOS...@BEA.com" <joe.weinst...@gmail.com>
wrote:
> > (I posted this first to c.l.j.p, but I realized it's more appropriate
> > here.)
[quoted text clipped - 29 lines]
> delete,
> just queries.
So how can you delete rows from a query? I tried the "deprecated"
form of "Session.delete(querystr)", but that doesn't work either (I
can't remember what failed there).
I guess I'll have to make sure the session is not in auto-commit and
iterate through all the objects manually, calling "delete()" on them.
I hope that will work.