IdentifierGenerator that returns the current identifier assigned
to an instance.
Implementation Note
This also implements the assigned generation type in hbm.xml mappings.
| Modifier and Type | Field and Description |
|---|---|
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(Type
The id property type descriptor type, Properties param values, keyed by parameter name parameters, ServiceRegistry Access to service that may be needed. serviceRegistry)Overrides default org. <param> elements.
|
| public Object | generate(SharedSessionContractImplementor
The session from which the request originates session, Object the entity or collection (idbag) for which the id is being generated obj)Implements org. |
| entityName | back to summary |
|---|---|
| private String entityName | |
| Assigned | back to summary |
|---|---|
| public Assigned() | |
| configure | back to summary |
|---|---|
| public void configure(Type type, Properties parameters, ServiceRegistry serviceRegistry) throws MappingException Overrides default org. Doc from org. Configure this instance, given the value of parameters
specified by the user as
This method is called just once, following instantiation,
and before
| |
| generate | back to summary |
|---|---|
| public Object generate(SharedSessionContractImplementor session, Object obj) throws HibernateException Implements org. Doc from org. Generate a new identifier.
| |