dimanche 24 avril 2016

rg.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update

rg.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: 
Batch update returned unexpected row count from update

This problem appears if we use hibernate and we want to add an object on 
the database.
This exception occurs,when we want to add the value of a primary key and we
 make the column on the table autoincrement.

So to get rid of this exception we must remove autoincrement from the database at 
this column or we have to remove the addition of this value 
 from the code or from the form.