facebook

Hibernate tutorial :: no data inside mysql

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #269460 Reply

    or3o
    Member

    http://www.myeclipseide.com/images/tutorials/quickstarts/hibernate_and_spring/tutorial.html

    i follow the instruction given. the tutorial working. then i check the table user in mysql database. there is no data inside my database. i try to disable

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

    still there is no data inside my table.

    this statement should store user data inside mysql

    /* 4. Save the new user to the database */
            persistenceLayer.addUser(user);
    #269486 Reply

    Riyad Kalla
    Member

    Try and start a transaction, then commit it before and after the addUser statement. this can be why you aren’t seeing the information (and the behavior seems to be different with different DBMSs)

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate tutorial :: no data inside mysql

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