Top Description Fields Methods
org.hibernate.metamodel.mapping

public Interface CompositeIdentifierMapping

extends EntityIdentifierMapping, EmbeddableValuedModelPart
Known Direct Subinterfaces
org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping
Known Direct Implementers
org.hibernate.query.derived.AnonymousTupleEmbeddedEntityIdentifierMapping, org.hibernate.metamodel.internal.AbstractCompositeIdentifierMapping
Imports
org.hibernate.engine.spi.IdentifierValue

Mapping for a composite identifier
Author
Andrea Boriero

Field Summary

Inherited from org.hibernate.metamodel.mapping.EntityIdentifierMapping:
ID_ROLE_NAMELEGACY_ID_NAME

Method Summary

Modifier and TypeMethod and Description
public default int
public EmbeddableMappingType
getMappedIdEmbeddableTypeDescriptor()

Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.

public EmbeddableMappingType
public default IdentifierValue
getUnsavedStrategy()

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getUnsavedStrategy.

The strategy for distinguishing between detached and transient state based on the identifier mapping
public boolean

Returns:

false if there is not an IdCass or an EmbeddableId
hasContainingClass
()

Does the identifier have a corresponding EmbeddableId or IdClass?

Inherited from org.hibernate.metamodel.mapping.EmbeddableValuedModelPart:
addToCacheKeybreakDownJdbcValuesdecomposedisassemblefindSubPartforEachDisassembledJdbcValueforEachInsertableforEachJdbcTypeforEachJdbcValueforEachSelectableforEachSubPartforEachUpdatablegetEmbeddableTypeDescriptorgetFetchablegetJavaTypegetJdbcMappinggetJdbcTypeCountgetMappedTypegetNumberOfFetchablesgetParentInjectionAttributePropertyAccessgetSelectablegetSelectableIndexhasPartitionedSelectionMappingtoSqlExpressionvisitSubParts
Inherited from org.hibernate.metamodel.mapping.EntityIdentifierMapping:
getAttributeNamegetIdentifiergetIdentifierIfNotUnsavedgetNaturegetPartNameinstantiateisEntityIdentifierMappingmatchesRoleNamesetIdentifier

Method Detail

getFetchableKeyback to summary
public default int getFetchableKey()

Implements org.hibernate.sql.results.graph.Fetchable.getFetchableKey.

Doc from org.hibernate.sql.results.graph.Fetchable.getFetchableKey.

The key that identifies this Fetchable within a FetchableContainer. If this Fetchable is part of FetchableContainer#visitFetchables(IndexedConsumer, EntityMappingType), the values is guaranteed to be between 0 (inclusive) and FetchableContainer#getNumberOfFetchableKeys() (exclusive). Other Fetchable objects may have a special negative value.

The main intent of this key is to index e.g. Fetch objects in an array.

Annotations
@Override
getMappedIdEmbeddableTypeDescriptorback to summary
public EmbeddableMappingType getMappedIdEmbeddableTypeDescriptor()

Returns the embeddable type descriptor of the id-class, if there is one, otherwise the one of the virtual embeddable mapping type.

getPartMappingTypeback to summary
public EmbeddableMappingType getPartMappingType()

Redeclares org.hibernate.metamodel.mapping.ModelPart.getPartMappingType.

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

The type for this part.

getUnsavedStrategyback to summary
public default IdentifierValue getUnsavedStrategy()

Implements org.hibernate.metamodel.mapping.EntityIdentifierMapping.getUnsavedStrategy.

Doc from org.hibernate.metamodel.mapping.EntityIdentifierMapping.getUnsavedStrategy.

The strategy for distinguishing between detached and transient state based on the identifier mapping

Annotations
@Override
hasContainingClassback to summary
public boolean hasContainingClass()

Does the identifier have a corresponding EmbeddableId or IdClass?

Returns:boolean

false if there is not an IdCass or an EmbeddableId