I use spring's getHibernateTemplate().save(Object obj).
However, Iam not able to save the object.
I use MySQL and my table uses an auto increment for the primary key field. In my hbm i have specified the generator calss as native.
However though the new row is not updated, MySQL seems to remember the number of attempts I had on creating the new row.
Because after trying multiple times (say 5) to insert using "hibernateTemplate" of Spring, when I try to manually enter the row values the id generator of MySQL sets the id value >5 times the old value.
Is it problem with Spring framework leveraging Hibernate or is it a problem with Hibernate itself?
_________________ Please vote if my Postings helps. :-)
|