You do not need to do anything. Hibernate will extract auto incrementing
status from the database metadata
You should implement it directly in object factory
Use <generator class="id"/> tag
Use <generator class="increment"/> tag
Implement getNextId() method
Implement AutoIncrement interface
|