Hi.
I am creating a database application using Hibernate and Derby. A number of the tables use the following to generate the id:
Code:
<id name="id" type="int" column="id" unsaved-value="-1">
<generator class="native"/>
</id>
This causes the TableHiLoGenerator to be used to create the ids.
I was wondering how this class ensures that unique ids are generated in the case where a large number of records are inserted and deleted, so that the value in HIBERNATE_UNIQUE_KEY wraps around?
Looking at the code, I can't see any safeguard to prevent this.
Thanks,
Carl