• 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
  • 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
  • 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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic