aspose file tools*
The moose likes Struts and the fly likes Through Hibernate,Struts2,Spring integration, While save records in MySQL table it's always updating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Through Hibernate,Struts2,Spring integration, While save records in MySQL table it Watch "Through Hibernate,Struts2,Spring integration, While save records in MySQL table it New topic
Author

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

Gowtham Subramaniam
Greenhorn

Joined: Feb 16, 2012
Posts: 10
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

Joined: Apr 23, 2008
Posts: 125
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Through Hibernate,Struts2,Spring integration, While save records in MySQL table it's always updating