facebook

MyEclipse Hibernate and Spring Tutorial – doesnt save data

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #323798 Reply

    myorogram
    Member

    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

    #323802 Reply

    support-swapna
    Moderator

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: MyEclipse Hibernate and Spring Tutorial – doesnt save data

You must be logged in to post in the forum log in