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,
Bijaysupport-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.