Interface IdentifierGeneratorFactory

All Superinterfaces:
Serializable, Service
All Known Implementing Classes:
StandardIdentifierGeneratorFactory

@Incubating public interface IdentifierGeneratorFactory extends Service
Contract for a factory of IdentifierGenerator instances. The implementor of this service is responsible for providing implementations of the predefined built-in id generators, all of which implement IdentifierGenerator, along with any id generator declared using GenericGenerator.

An id generator is identified by either:

  • a predefined string-based name (which originated in the old hbm.xml mapping file format),
  • the name or the the type specified by the @GenericGenerator annotation, or
  • a JPA-defined GenerationType.

A new generator passed a Properties object containing parameters via the method IdentifierGenerator.configure(Type, Properties, ServiceRegistry).

This is part of an older mechanism for instantiating and configuring id generators which predates the existence of Generator and the @IdGeneratorType meta-annotation.

Author:
Steve Ebersole