Class EmbeddableSourceVirtualImpl
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
-
- org.hibernate.boot.model.source.internal.hbm.EmbeddableSourceVirtualImpl
-
- All Implemented Interfaces:
AttributeSourceContainer
,EmbeddableSource
,ToolingHintContextContainer
public class EmbeddableSourceVirtualImpl extends AbstractHbmSourceNode implements EmbeddableSource
A virtual embeddable; what Hibernate historically (pre-JPA) called an embedded component. Mainly used to model a<properties/>
mapping
-
-
Constructor Summary
Constructors Constructor Description EmbeddableSourceVirtualImpl(MappingDocument mappingDocument, AttributesHelper.Callback containingCallback, EmbeddableSourceContainer container, List attributeJaxbMappings, String logicalTableName, NaturalIdMutability naturalIdMutability, JaxbHbmPropertiesType jaxbPropertiesGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AttributeSource>
attributeSources()
Obtain this container's attribute sources.AttributePath
getAttributePathBase()
AttributeRole
getAttributeRoleBase()
LocalMetadataBuildingContext
getLocalMetadataBuildingContext()
Obtain the local binding context associated with this container.String
getParentReferenceAttributeName()
ToolingHintContext
getToolingHintContext()
JavaTypeDescriptor
getTypeDescriptor()
boolean
isDynamic()
Indicates whether this embeddable/component is dynamic (represented as a Map), or whether a dedicated class for it is available.boolean
isUnique()
-
Methods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocument
-
-
-
-
Constructor Detail
-
EmbeddableSourceVirtualImpl
public EmbeddableSourceVirtualImpl(MappingDocument mappingDocument, AttributesHelper.Callback containingCallback, EmbeddableSourceContainer container, List attributeJaxbMappings, String logicalTableName, NaturalIdMutability naturalIdMutability, JaxbHbmPropertiesType jaxbPropertiesGroup)
-
-
Method Detail
-
getTypeDescriptor
public JavaTypeDescriptor getTypeDescriptor()
- Specified by:
getTypeDescriptor
in interfaceEmbeddableSource
-
getParentReferenceAttributeName
public String getParentReferenceAttributeName()
- Specified by:
getParentReferenceAttributeName
in interfaceEmbeddableSource
-
isDynamic
public boolean isDynamic()
Description copied from interface:EmbeddableSource
Indicates whether this embeddable/component is dynamic (represented as a Map), or whether a dedicated class for it is available.- Specified by:
isDynamic
in interfaceEmbeddableSource
- Returns:
true
indicates that the composition is represented as a Map;false
indicates there is a dedicated class for representing the composition.
-
isUnique
public boolean isUnique()
- Specified by:
isUnique
in interfaceEmbeddableSource
-
getAttributePathBase
public AttributePath getAttributePathBase()
- Specified by:
getAttributePathBase
in interfaceAttributeSourceContainer
-
getAttributeRoleBase
public AttributeRole getAttributeRoleBase()
- Specified by:
getAttributeRoleBase
in interfaceAttributeSourceContainer
-
attributeSources
public List<AttributeSource> attributeSources()
Description copied from interface:AttributeSourceContainer
Obtain this container's attribute sources.- Specified by:
attributeSources
in interfaceAttributeSourceContainer
- Returns:
- The attribute sources.
-
getLocalMetadataBuildingContext
public LocalMetadataBuildingContext getLocalMetadataBuildingContext()
Description copied from interface:AttributeSourceContainer
Obtain the local binding context associated with this container.- Specified by:
getLocalMetadataBuildingContext
in interfaceAttributeSourceContainer
- Returns:
- The local binding context
-
getToolingHintContext
public ToolingHintContext getToolingHintContext()
- Specified by:
getToolingHintContext
in interfaceToolingHintContextContainer
-
-