Hi folks,
currenly I am using Hibernare 3 and Jboss4.0.2.
In my application, I want to save the student objects.
the mapping file is like this
<class name="Student" table="tblStudent" lazy="true">
<id name="id" column="ClientOutputID" type="int" unsaved-value="null" >
<generator class="increment"/>
</id>
After I saved 3 student instance, their id are 1,2,3.
then I deleted id 3.
But then I saved a new instance, the id is 4, not 3.
What is wrong? I supoosed the id shoud be 3, based on increment from 2.
Please help!
Thank you very much!
Chwang
|