This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Through Hibernate,Struts2,Spring integration, While save records in MySQL table it's always updating

 
Gowtham Subramaniam
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me !! To solve problem while saving it is always updating the table records not saving.....

&


Throwing error as

org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1


Please explain it reason error in your code. I can't upload my code

Reply me as soon as possible
 
Vicky Vijay
Ranch Hand
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What configuration value you have made for the below property in hibernate,

"hibernate.hbm2ddl.auto"

Check the below link for reference ...

hbm2ddl.auto Reference Link

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic