• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate save(Bbject) not saving object to the database

 
Arun kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have done everything right . I have provided the database connection properly , i have given the hibernate mapping properly , when i save a object to the session it is saved in the session but not in the database. I can retrieve ALL objects from the session but no values are actually added to the database , when i reopen my program all values are lost .
Please help
 
Arun kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it resolved
I ve been using MYSql 5
I guess it doesnt support AutoCommit with jdbc
so i tried to get the connection from the session
session.connection.setAutoCommit(true);
after tht it worked fine
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic