• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubts about session in hibernate

 
Josh Borg
Ranch Hand
Posts: 37
Chrome Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm using session to return values in mysql database:





The problem is that I'm saving the values in the program, it's saving data in DB, I can see them in the mysql workbench that they are in DB, but when I do this query above, the data saved since I started program isn't listed. When I close it and restart the data is all there in the form. Everytime I save in db I must close the session and instantiate another when I select data again, because I'm not close it, I'm using the same during all the program execution.
 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the error or problem ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic