• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate with Spring does not commit Data  RSS feed

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Hibernate and Spring in my Spring configuration file i have


and in my DAO class i have



The code runs but whenever i check the database i can't find the code i just commited
 
Kumar Subramanian
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check your auto commit property. also you can check out using spring Transaction Callbacks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!