/ Published in: Java
Deleting rows from a table using hibernate 3.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Single object ------------- Multiple Objects - Condition ---------------------------- Query deleteQuery = session.createQuery( "delete Employee employee where employee.age > 58"); int count = deleteQuery.executeUpdate();