Package org.hibernate.id
Interface Configurable
- All Known Subinterfaces:
IdentifierGenerator,OptimizableGenerator,PersistentIdentifierGenerator,PostInsertIdentifierGenerator
- All Known Implementing Classes:
AbstractPostInsertGenerator,AbstractUUIDGenerator,Assigned,CompositeNestedGeneratedValueGenerator,ForeignGenerator,GUIDGenerator,IdentityGenerator,IncrementGenerator,SelectGenerator,SequenceStyleGenerator,TableGenerator,UUIDGenerator,UUIDHexGenerator
public interface Configurable
An
IdentifierGenerator that supports "configuration".-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Type type, Properties params, ServiceRegistry serviceRegistry) Configure this instance, given the value of parameters specified by the user as<param>elements.
-
Method Details
-
configure
void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException Configure this instance, given the value of parameters specified by the user as<param>elements. This method is called just once, following instantiation.- Parameters:
type- The id property type descriptorparams- param values, keyed by parameter nameserviceRegistry- Access to service that may be needed.- Throws:
MappingException
-