I want to delete list of record from my table using hibernate:
My sql query would look like:
delete from students where joinDate="2014-03-08"
I would like to delete all the record who joined in above mentioned date.
In students table, I'm having two foreign keys: classId and courseId.
Can you help how to write effective way of hibernate delete query for above scenario?
Appreciate your help!