Top Description Methods
org.hibernate.boot.model.source.spi

public Interface CompositeIdentifierSource

extends IdentifierSource, EmbeddableSourceContributor
Known Direct Subinterfaces
org.hibernate.boot.model.source.spi.IdentifierSourceAggregatedComposite, org.hibernate.boot.model.source.spi.IdentifierSourceNonAggregatedComposite
Imports
org.hibernate.boot.model.IdentifierGeneratorDefinition

Common contract for composite identifiers. Specific sub-types include aggregated (think javax.persistence.EmbeddedId) and non-aggregated (think javax.persistence.IdClass).
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public IdentifierGeneratorDefinition

Returns:

The generator for the named attribute (within the composite).
getIndividualAttributeIdGenerator
(String
The name of the individual attribute within the composite identifier.
identifierAttributeName
)

Handle silly SpecJ reading of the JPA spec.

Inherited from org.hibernate.boot.model.source.spi.EmbeddableSourceContributor:
getEmbeddableSource
Inherited from org.hibernate.boot.model.source.spi.IdentifierSource:
getIdentifierGeneratorDescriptorgetNature

Method Detail

getIndividualAttributeIdGeneratorback to summary
public IdentifierGeneratorDefinition getIndividualAttributeIdGenerator(String identifierAttributeName)

Handle silly SpecJ reading of the JPA spec. They believe composite identifiers should have "partial generation" capabilities.

Parameters
identifierAttributeName:String

The name of the individual attribute within the composite identifier.

Returns:IdentifierGeneratorDefinition

The generator for the named attribute (within the composite).