This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
It seems as if you are using Spring (Hibernate template).
HibernateTemplate has inbuilt mechanism which will definitely save the object. (Callback methods are taking care for all this.)
If you really want to see the effect then use your own transaction using HIbernate Session and then dont commit that, you can see the effect.
Joined: Jun 17, 2009
you mean to say ...instead of using hibernateTemplate ...i should go for using traditional method for starting of a new transacation and then execute the query and the explicit commit...
When i use hibernate template ..cant this be achived .