MyEclipse: MyEclipse Hibernate and Spring Tutorial - doesnt save data

myorogram - Feb 29, 2012 - 07:03 AM
Post subject: MyEclipse Hibernate and Spring Tutorial - doesnt save data
Hi
I tried to test the Spring tutorial application "MyEclipse Hibernate and Spring Tutorial" from the URL http://www.myeclipseide.com/documentation/quickstarts/hibernateandspring/.

In Step 6, we have a business logic code .. Over there I commented out the deleteuser lines at the bottom of BusinessLogic.java /*8...*/

/* 8. Delete the user */
//persistenceLayer.deleteUser(user);


However, when I check the database, I do not see a user which was added and then updated later.

What could be causing this? Can someone help?

Thank you,
Bijay
support-swapna - Feb 29, 2012 - 10:50 AM
Post subject:
Bijay,

The tutorial wasn't written with transactions originally to help keep it simple, so your information is cached in the session until Hibernate decides to flush it.

Take a look at this thread which discusses the same issue and check out the suggestions :
http://www.myeclipseide.com/PNphpBB2-printview-t-19832-start-0.html

Let us know how it works for you.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits