Hello,
I have a bug in my application and I don't know if it a bug from hibernate or more a misused from me or my conf. Here are the step to reproduce: -I launch my application -I create a Person Object and close my hibernate session -I create another one from another jvm -I create a third one from my application Then it crashes my app telling me that the id is already used in db.
I use org.hibernate:hibernate:3.2.6-ga artifact Person is configured with the IncrementGenerator class. When I look into it, I see, it get max id for the person class only the first time (org.hibernate.id.IncrementGenerator, line 43 and 94) and not not each time a new hibernate session is opened.
Do you know a way to configured Person or my app a way that each application can be aware of the next id to use to generate a new Person?
Thank you in advance for your help! Fanch
|