jaybytez wrote:
Deleting objects/rows in Hibernate 3.0.3 appears to be around Session.delete(Object object). It seems in the 2+ versions of Hibernate, there were more options. It appeared you could take a query (like a default query used for select) and pass it into a delete method and it will run the method as a SQL delete. But it appears that in Hibernate 3.0.3, the only way to delete an object is to first query for the object and then send that object through the Session.delete method...is this true?
Thanks,
jay
Yes. It is true. In H2, they executed the query, retrieved the objects, and deleted them for you. Now you have to do it yourself.