Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Grant Young   on Sep 18 In Java Category.

  
Question Answered By: Hooriya Khan   on Sep 18

You can use this code,it might help you.

public <T> Object refresh(T obj){
Session session= HibernateUtil.getSession();
Transaction tx=session.beginTransaction();
session.refresh(obj);
tx.commit();
tx=null;
return obj;
}

Share: 

 

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

 
Didn't find what you were looking for? Find more on Hibernate+icefaces Or get search suggestion and latest updates.