My Use Case:
- my Hibernate configuration using auto increment generator for insert and I don't want to change it.
- A user deleted a object with ID:10 and I saved this deleted object to somewhere.
- later on, user decide to restore this deleted object back with the same ID:10.
- since this object with ID:10 has been deleted from the database, How can I use Hibernate to insert it back to database while the hibernate configuration using auto increment generator(remember: I need keep the same ID for this object in database)?
Thanks,
Alex