I need to add a simple bulk delete to an existing Hibernate-enabled app.
If I use SQLQueryImpl.executeUpdate() to do this, I assume that it is completely out of the context of an existing session, and has no effect on an existing session.
Is that correct?
Assuming auto-commit is on in my DB, I should see the DELETE committed immediately, correct?
Thanks,
Wes
P. S. If there's some "cool" Hibernate way to delete multiple records with one delete statement via the API, I couldn't find it. If such a method exists, please enlighten me.
|