| Author |
getHibernateTemplate().saveOrUpdate() not saving the value in database.
|
pankaj semwal
Ranch Hand
Joined: Oct 07, 2008
Posts: 300
|
|
i call getHibernateTemplate().saveOrUpdate(transientInstance); but the value is not storing in the database.
and
below is my application.context .xml file
Please tell me.
|
 |
Peter Mularien
Author
Ranch Hand
Joined: Sep 06, 2007
Posts: 84
|
|
|
Hard to say without seeing how you've mapped the Hibernate object, but typically this occurs if you haven't set the version property correctly (or incorrectly indicated to hibernate what the version of an unsaved entity is).
|
Author, Spring Security 3 (the Book), Packt Publishing, 2010
SCJP, OCP
|
 |
pankaj semwal
Ranch Hand
Joined: Oct 07, 2008
Posts: 300
|
|
now its saving the data in the database.
i set this property true in hibernate config.xml;
<property name="connection.autocommit">true</property>
|
 |
 |
|
|
subject: getHibernateTemplate().saveOrUpdate() not saving the value in database.
|
|
|