Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Michael Cox   on Oct 16 In Java Category.

  
Question Answered By: Ty Thompson   on Oct 16

I have used hibernate  3.0 bulk  delete as follows and it works fine.


int deletedAttachments = session.createQuery(
"delete Attachment where fkFrmTrackingId= :trackingId and filename= :filename").
setLong("trackingId", trackingId).
setString("filename", filename).
executeUpdate();

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on About Hibernate and Bulk Update/Delete in HQL Or get search suggestion and latest updates.


Tagged: