Top Description Methods
org.hibernate.metamodel.mapping

public Interface VirtualModelPart

extends ModelPart
Known Direct Subinterfaces
org.hibernate.metamodel.mapping.NonAggregatedIdentifierMapping, org.hibernate.metamodel.mapping.DiscriminatorMapping, org.hibernate.metamodel.mapping.EntityRowIdMapping, org.hibernate.metamodel.mapping.ForeignKeyDescriptor, org.hibernate.metamodel.mapping.NaturalIdMapping, org.hibernate.metamodel.mapping.SoftDeleteMapping
Known Direct Implementers
org.hibernate.metamodel.mapping.internal.VirtualEmbeddedAttributeMapping

Marker interface for parts of the application domain model that do not actually exist in the model classes.
Author
Steve Ebersole
See Also
isVirtual()

Method Summary

Modifier and TypeMethod and Description
public default boolean
isVirtual()

Overrides default org.hibernate.metamodel.mapping.ModelPart.isVirtual.

Whether this model part describes something that physically exists in the domain model.
Inherited from org.hibernate.metamodel.mapping.ModelPart:
applySqlSelectionsapplySqlSelectionsareEqualasAttributeMappingasEntityMappingTypebreakDownJdbcValuesbreakDownJdbcValuescreateDomainResultdecomposedecomposefindContainingEntityMappingforEachSelectableforEachSelectablegetJavaTypegetNavigableRolegetPartMappingTypegetPartNamehasPartitionedSelectionMappingisEntityIdentifierMapping

Method Detail

isVirtualback to summary
public default boolean isVirtual()

Overrides default org.hibernate.metamodel.mapping.ModelPart.isVirtual.

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

Whether this model part describes something that physically exists in the domain model.

For example, an entity's discriminator is part of the model, but is not a physical part of the domain model - there is no "discriminator attribute".

Also indicates whether the part is castable to VirtualModelPart

Annotations
@Override