Top Description Fields Constructors Methods
org.hibernate.metamodel.mapping.internal

public Class IdClassEmbeddable

extends AbstractEmbeddableMapping
implements IdentifierValueMapper
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.IdentifierValueMapper, org.hibernate.metamodel.mapping.EmbeddableMappingType, org.hibernate.metamodel.mapping.SelectableMappings, org.hibernate.metamodel.mapping.ManagedMappingType, org.hibernate.sql.results.graph.FetchableContainer, org.hibernate.metamodel.mapping.ModelPartContainer, org.hibernate.metamodel.mapping.ModelPart, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.metamodel.mapping.MappingType
Imports
java.util.function.Consumer, org.hibernate.engine.FetchStyle, .FetchTiming, org.hibernate.engine.spi.EntityHolder, .EntityKey, .PersistenceContext, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.mapping.Component, .RootClass, org.hibernate.metamodel.mapping.AttributeMapping, .AttributeMetadata, .EmbeddableMappingType, .EmbeddableValuedModelPart, .EntityIdentifierMapping, .EntityMappingType, .ModelPart, .NonAggregatedIdentifierMapping, .NonAggregatedIdentifierMapping.IdentifierValueMapper, .SelectableMappings, org.hibernate.metamodel.model.domain.NavigableRole, org.hibernate.metamodel.spi.EmbeddableRepresentationStrategy, org.hibernate.persister.entity.EntityPersister, org.hibernate.property.access.internal.PropertyAccessStrategyMapImpl, org.hibernate.property.access.spi.PropertyAccess, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.tree.from.TableGroup, .TableGroupProducer, org.hibernate.sql.results.graph.DomainResult, .DomainResultCreationState, org.hibernate.type.AnyType, .CollectionType, .CompositeType, org.hibernate.type.descriptor.java.JavaType, org.hibernate.type.spi.CompositeTypeImplementor

EmbeddableMappingType implementation describing an jakarta.persistence.IdClass

Field Summary

Modifier and TypeField and Description
private final EmbeddableValuedModelPart
private final NonAggregatedIdentifierMapping
private final JavaType<?>
private final IdClassRepresentationStrategy
private final VirtualIdEmbeddable
Inherited from org.hibernate.metamodel.mapping.internal.AbstractEmbeddableMapping:
attributeMappingsselectableMappings

Constructor Summary

AccessConstructor and Description
public
IdClassEmbeddable(Component idClassSource, RootClass bootEntityDescriptor, NonAggregatedIdentifierMapping idMapping, EntityMappingType identifiedEntityMapping, String idTable, String[] idColumns, VirtualIdEmbeddable virtualIdEmbeddable, MappingModelCreationProcess creationProcess)

public
IdClassEmbeddable(EmbeddedAttributeMapping valueMapping, TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, IdClassEmbeddable inverseMappingType, MappingModelCreationProcess creationProcess)

Method Summary

Modifier and TypeMethod and Description
public <T> DomainResult<T>
createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState)

Implements org.hibernate.metamodel.mapping.EmbeddableMappingType.createDomainResult.

Create a DomainResult for a specific reference to this ModelPart.
public EmbeddableMappingType
public EntityMappingType
private boolean
finishInitialization(Component bootDescriptor, CompositeType compositeType, String rootTableExpression, String[] rootTableKeyColumnNames, MappingModelCreationProcess creationProcess)

public void
public <X, Y> int
public EmbeddableValuedModelPart
public EmbeddableValuedModelPart
public Object
getIdentifier(Object entity, SharedSessionContractImplementor session)

Implements org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.IdentifierValueMapper.getIdentifier.

Extract the identifier out of the given entity, returning the mapper's representation
public JavaType<?>
public NavigableRole
public String
getPartName()

Implements org.hibernate.metamodel.mapping.ModelPart.getPartName.

The local part name, which is generally the unqualified role name
public EmbeddableRepresentationStrategy
public boolean
public void
setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)

Implements org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.IdentifierValueMapper.setIdentifier.

Extract the identifier out of the given entity, returning the mapper's representation
Inherited from org.hibernate.metamodel.mapping.internal.AbstractEmbeddableMapping:
addAttributeaddToCacheKeybreakDownJdbcValuesdisassemblefindAttributeMappingfindSubPartfinishInitializationforEachAttributeMappingforEachJdbcTypeforEachJdbcValueforEachSelectableforEachSelectableforEachSubPartgetAttributeMappinggetAttributeMappingsgetFetchablegetJdbcMappinggetJdbcTypeCountgetNumberOfAttributeMappingsgetNumberOfFetchablesgetSelectablegetSelectableMappingsgetValuesinitColumnMappingsinverseInitializeCallbacksetValuesvisitFetchablesvisitFetchablesvisitSubParts

Field Detail

embeddedback to summary
private final EmbeddableValuedModelPart embedded
idMappingback to summary
private final NonAggregatedIdentifierMapping idMapping
javaTypeback to summary
private final JavaType<?> javaType
representationStrategyback to summary
private final IdClassRepresentationStrategy representationStrategy
virtualIdEmbeddableback to summary
private final VirtualIdEmbeddable virtualIdEmbeddable

Constructor Detail

IdClassEmbeddableback to summary
public IdClassEmbeddable(Component idClassSource, RootClass bootEntityDescriptor, NonAggregatedIdentifierMapping idMapping, EntityMappingType identifiedEntityMapping, String idTable, String[] idColumns, VirtualIdEmbeddable virtualIdEmbeddable, MappingModelCreationProcess creationProcess)
IdClassEmbeddableback to summary
public IdClassEmbeddable(EmbeddedAttributeMapping valueMapping, TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, IdClassEmbeddable inverseMappingType, MappingModelCreationProcess creationProcess)

Method Detail

createDomainResultback to summary
public <T> DomainResult<T> createDomainResult(NavigablePath navigablePath, TableGroup tableGroup, String resultVariable, DomainResultCreationState creationState)

Implements org.hibernate.metamodel.mapping.EmbeddableMappingType.createDomainResult.

Doc from org.hibernate.metamodel.mapping.ModelPart.createDomainResult.

Create a DomainResult for a specific reference to this ModelPart.

Annotations
@Override
createInverseMappingTypeback to summary
public EmbeddableMappingType createInverseMappingType(EmbeddedAttributeMapping valueMapping, TableGroupProducer declaringTableGroupProducer, SelectableMappings selectableMappings, MappingModelCreationProcess creationProcess)

Implements org.hibernate.metamodel.mapping.EmbeddableMappingType.createInverseMappingType.

Annotations
@Override
findContainingEntityMappingback to summary
public EntityMappingType findContainingEntityMapping()

Implements org.hibernate.metamodel.mapping.ModelPart.findContainingEntityMapping.

Annotations
@Override
finishInitializationback to summary
private boolean finishInitialization(Component bootDescriptor, CompositeType compositeType, String rootTableExpression, String[] rootTableKeyColumnNames, MappingModelCreationProcess creationProcess)
forEachAttributeMappingback to summary
public void forEachAttributeMapping(Consumer<? super AttributeMapping> action)

Overrides org.hibernate.metamodel.mapping.internal.AbstractEmbeddableMapping.forEachAttributeMapping.

Implements org.hibernate.metamodel.mapping.ManagedMappingType.forEachAttributeMapping.

Doc from org.hibernate.metamodel.mapping.ManagedMappingType.forEachAttributeMapping.

Visit attributes defined on this class and any supers

Annotations
@Override
forEachDisassembledJdbcValueback to summary
public <X, Y> int forEachDisassembledJdbcValue(Object value, int offset, X x, Y y, Bindable.JdbcValuesBiConsumer<X, Y> valuesConsumer, SharedSessionContractImplementor session)

Overrides org.hibernate.metamodel.mapping.internal.AbstractEmbeddableMapping.forEachDisassembledJdbcValue.

Implements org.hibernate.metamodel.mapping.Bindable.forEachDisassembledJdbcValue.

Doc from org.hibernate.metamodel.mapping.Bindable.forEachDisassembledJdbcValue.

Like forEachDisassembledJdbcValue(Object, Object, Object, JdbcValuesBiConsumer, SharedSessionContractImplementor), but additionally receives an offset by which the selectionIndex is incremented when calling JdbcValuesBiConsumer#consume(int, Object, Object, Object, JdbcMapping).

Annotations
@Override
getEmbeddedPartback to summary
public EmbeddableValuedModelPart getEmbeddedPart()

Implements org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.IdentifierValueMapper.getEmbeddedPart.

Annotations
@Override
getEmbeddedValueMappingback to summary
public EmbeddableValuedModelPart getEmbeddedValueMapping()

Implements org.hibernate.metamodel.mapping.EmbeddableMappingType.getEmbeddedValueMapping.

Annotations
@Override
getIdentifierback to summary
public Object getIdentifier(Object entity, SharedSessionContractImplementor session)

Implements org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.IdentifierValueMapper.getIdentifier.

Doc from org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.IdentifierValueMapper.getIdentifier.

Extract the identifier out of the given entity, returning the mapper's representation

Annotations
@Override
getMappedJavaTypeback to summary
public JavaType<?> getMappedJavaType()

Overrides org.hibernate.metamodel.mapping.internal.AbstractEmbeddableMapping.getMappedJavaType.

Implements org.hibernate.metamodel.mapping.MappingType.getMappedJavaType.

Doc from org.hibernate.metamodel.mapping.MappingType.getMappedJavaType.

The descriptor descriptor for the mapped Java type

Annotations
@Override
getNavigableRoleback to summary
public NavigableRole getNavigableRole()

Implements org.hibernate.metamodel.mapping.ModelPart.getNavigableRole.

Annotations
@Override
getPartNameback to summary
public String getPartName()

Implements org.hibernate.metamodel.mapping.ModelPart.getPartName.

Doc from org.hibernate.metamodel.mapping.ModelPart.getPartName.

The local part name, which is generally the unqualified role name

Annotations
@Override
getRepresentationStrategyback to summary
public EmbeddableRepresentationStrategy getRepresentationStrategy()

Implements org.hibernate.metamodel.mapping.EmbeddableMappingType.getRepresentationStrategy.

Annotations
@Override
isCreateEmptyCompositesEnabledback to summary
public boolean isCreateEmptyCompositesEnabled()

Implements org.hibernate.metamodel.mapping.EmbeddableMappingType.isCreateEmptyCompositesEnabled.

Annotations
@Override
setIdentifierback to summary
public void setIdentifier(Object entity, Object id, SharedSessionContractImplementor session)

Implements org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.IdentifierValueMapper.setIdentifier.

Doc from org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping.IdentifierValueMapper.setIdentifier.

Extract the identifier out of the given entity, returning the mapper's representation

Annotations
@Override