org.hibernate.id.IdentifierGenerator |
The general contract between a class that generates unique
identifiers and the Session. It is not intended that
this interface ever be exposed to the application. It is
intended that users implement this interface to provide
custom identifier generation strategies.
Implementors should provide a public default constructor.
Implementations that accept configuration parameters should
also implement Configurable.
Implementors must be threadsafe
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ENTITY_NAME | The configuration parameter holding the entity name |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generate a new identifier.
|
The configuration parameter holding the entity name
Generate a new identifier.
object | the entity or toplevel collection for which the id is being generated |
---|
HibernateException |
---|