Deprecated
as a consequence of Configurable being deprecated. See corresponding docs for further information.
PersistentIdentifierGenerator
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ENTITY_NAME
The configuration parameter holding the entity name |
| public static final String | GENERATOR_NAME
Used as a key to pass the name used as |
| public static final String | JPA_ENTITY_NAME
The configuration parameter holding the JPA entity name |
| Modifier and Type | Method and Description |
|---|---|
| public default void | configure(Type
The id property type descriptor type, Properties param values, keyed by parameter name params, ServiceRegistry Access to service that may be needed. serviceRegistry)Implements org. |
| public Serializable | Returns: a new identifierThe session from which the request originates session, Object the entity or collection (idbag) for which the id is being generated object)Generate a new identifier. |
| public default void | initialize(SqlStringGenerationContext
A context to help generate SQL strings context)Initializes this instance, in particular pre-generates SQL as necessary. |
| public default void | registerExportables(Database
The database instance database)Implements org.
This method is called just once, after |
| public default boolean | Returns: JDBC batch inserts are supported.Check if JDBC batch inserts are supported. |
| ENTITY_NAME | back to summary |
|---|---|
| public static final String ENTITY_NAME The configuration parameter holding the entity name | |
| GENERATOR_NAME | back to summary |
|---|---|
| public static final String GENERATOR_NAME Used as a key to pass the name used as | |
| JPA_ENTITY_NAME | back to summary |
|---|---|
| public static final String JPA_ENTITY_NAME The configuration parameter holding the JPA entity name | |
| configure | back to summary |
|---|---|
| public default void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException Implements org. Configure this instance, given the value of parameters specified by the user as <param> elements.
This method is called just once, following instantiation, and before
| |
| generate | back to summary |
|---|---|
| public Serializable generate(SharedSessionContractImplementor session, Object object) throws HibernateException Generate a new identifier.
| |
| initialize | back to summary |
|---|---|
| public default void initialize(SqlStringGenerationContext context) Initializes this instance, in particular pre-generates SQL as necessary.
This method is called after
| |
| registerExportables | back to summary |
|---|---|
| public default void registerExportables(Database database) Implements org. Register database objects used by this identifier generator, e.g. sequences, tables, etc.
This method is called just once, after | |
| supportsJdbcBatchInserts | back to summary |
|---|---|
| public default boolean supportsJdbcBatchInserts() Check if JDBC batch inserts are supported.
| |