-
Nov 30th, 2011, 07:24 AM
#1
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();
session.update(item);
tx.commit();
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 jpatel@logicom.in
-
Nov 30th, 2011, 08:10 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules