Nov 30th, 2011, 07:24 AM
spring hibernate not update item.....
i am beginner in spring
in my project i use spring + hibernate
i update my object using this.getHibernateTemplate().update(item);
it is not update my item.
but when i use
Session session = getSession();
Transaction tx = null;
tx = session.beginTransaction();
it is update completely my item
so i don't understand why this.getHibernateTemplate().update(item); it not update my item
plz replay answer on firstname.lastname@example.org
Nov 30th, 2011, 08:10 AM
Please use the search as this question has been answered numerous times before. You probably haven't configured transactions (and only adding a TransactionManager isn't configuring transactions!). I suggest a read of the spring reference guide and not to use HibernateTemplate (it isn't recommended anymore since hibernate 3.0.1).
Tags for this Thread