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: Silvia Chapman   on Oct 16

If you use hibernate  3 ,you must run following statment  as update statment:


Query query=hibernateSession.query("Update Bill b set  b.status=? where b.id > ?");
query.setInteger(1);
query.setInteger(1000);
query.list();

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: