Is there a way to use hibernate to do a "quick delete"? The behavior I would like is to issue a delete query (and not have hibernate load up the object first, and then delete it), as well as have the option to rollback the deletes if something goes wrong.
The problem is, if there are many objects, or the objects are very large, issuing multiple delete() commands and storing them in the session cache until the transaction is committed may not be feasible. I just want to be able to delete the object and then get it out of memory. Any thoughts?
|