MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
View previous topic Printable version Log in to check your private messages View next topic
Author Message
myorogram
Post subject: MyEclipse Hibernate and Spring Tutorial - doesnt save data  PostPosted: Feb 29, 2012 - 07:03 AM
Registered Member
Registered Member


Joined: Feb 29, 2012
Posts: 1

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Feb 29, 2012 - 10:50 AM



Joined: Nov 11, 2010
Posts: 2637

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.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits