Interface CompositeIdentifierSource

All Superinterfaces:
EmbeddableSourceContributor, IdentifierSource, ToolingHintContextContainer
All Known Subinterfaces:
IdentifierSourceAggregatedComposite, IdentifierSourceNonAggregatedComposite

public interface CompositeIdentifierSource extends IdentifierSource, EmbeddableSourceContributor
Common contract for composite identifiers. Specific sub-types include aggregated (think EmbeddedId) and non-aggregated (think IdClass).
  • Method Details

    • getIndividualAttributeIdGenerator

      IdentifierGeneratorDefinition getIndividualAttributeIdGenerator(String identifierAttributeName)
      Handle silly SpecJ reading of the JPA spec. They believe composite identifiers should have "partial generation" capabilities.
      Parameters:
      identifierAttributeName - The name of the individual attribute within the composite identifier.
      Returns:
      The generator for the named attribute (within the composite).