Hi, I use GWT with hibernate... And when i delete the object... it is reflected in database...but not in my application.. only upon restarting the execution it is reflected.... I know that the cache did not refresh... I tried using session.clear()... session.evict(obj)... but nothing worked... here is my code... *
*Boolean deleteOrder(*int* orderId) { SessionFactory sF = HibernateUtil.*getSessionFactory*(); session = sF.getCurrentSession(); session.beginTransaction(); System.*out*.println(sF.getCache().containsEntity(SOrd.*class*, orderId)); SOrd sOrd = (SOrd) session.get(SOrd.*class*, orderId); *for* (SItem sItem : sOrd.getSItems()) { System.*out*.println("deleted"); session.delete(sItem); } session.delete(sOrd); session.getTransaction().commit(); System.*out*.println("Deleted"); *return* *true*; } can anyone help me.... Regards, Nalini.K -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.