Announcement Announcement Module
Collapse
No announcement yet.
spring hibernate not update item..... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 [email protected]

  • #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).

    Comment

    Working...
    X