This thread has been locked & this forum has been archived.
Please post new topics to Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Author Message
myorogram
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



Joined: Nov 11, 2010
Posts: 2743

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
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.
® 2014 - Genuitec, LLC.