- All Implemented Interfaces:
- org.hibernate.id.BulkInsertionCapableIdentifierGenerator, org.hibernate.id.IdentifierGenerator, org.hibernate.id.PostInsertIdentifierGenerator
public class UseIdOrGenerate
extends org.hibernate.id.IdentityGenerator
This class is needed to be able to use specified entity IDs instead of the
default auto-incremented IDs. This was necessary so that exported data from
the old management console using SimpleDB could be imported into a relational
database while keeping the same IDs for the entities from the exported data.
- Author:
- Erik Paulsson
Date: 5/20/14