Class JoinedSubclassEntitySourceImpl
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
org.hibernate.boot.model.source.internal.hbm.AbstractEntitySourceImpl
org.hibernate.boot.model.source.internal.hbm.SubclassEntitySourceImpl
org.hibernate.boot.model.source.internal.hbm.JoinedSubclassEntitySourceImpl
- All Implemented Interfaces:
Helper.InLineViewNameInferrer,AttributeSourceContainer,EntityNamingSourceContributor,EntitySource,ForeignKeyContributingSource,IdentifiableTypeSource,JoinedSubclassEntitySource,SubclassEntitySource,ToolingHintContextContainer
public class JoinedSubclassEntitySourceImpl
extends SubclassEntitySourceImpl
implements JoinedSubclassEntitySource
-
Constructor Summary
ConstructorsConstructorDescriptionJoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container) -
Method Summary
Modifier and TypeMethodDescriptionbooleanPrimarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).Get the actual discriminator value in case of a single table inheritanceRetrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.ThePrimaryKeyJoinColumnsmapping for the joined-subclass.booleanIs "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?Methods inherited from class org.hibernate.boot.model.source.internal.hbm.SubclassEntitySourceImpl
getPrimaryTable, getSuperTypeMethods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractEntitySourceImpl
afterInstantiation, attributeSources, buildAttributeSources, buildAttributeSources, extractEntityNamingSource, getAttributePathBase, getAttributeRoleBase, getBatchSize, getCustomLoaderName, getCustomPersisterClassName, getCustomSqlDelete, getCustomSqlInsert, getCustomSqlUpdate, getEntityNamingSource, getFilterSources, getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getNamedNativeQueries, getNamedQueries, getOrigin, getProxy, getSecondaryTableMap, getSubTypes, getSynchronizedTableNames, getToolingHintContext, getTypeName, getXmlNodeName, inferInLineViewName, injectHierarchy, isAbstract, isDynamicInsert, isDynamicUpdate, isLazy, isSelectBeforeUpdate, jaxbEntityMappingMethods inherited from class org.hibernate.boot.model.source.internal.hbm.AbstractHbmSourceNode
mappingRoot, metadataBuildingContext, origin, sourceMappingDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.model.source.spi.AttributeSourceContainer
attributeSources, getAttributePathBase, getAttributeRoleBaseMethods inherited from interface org.hibernate.boot.model.source.spi.EntityNamingSourceContributor
getEntityNamingSourceMethods inherited from interface org.hibernate.boot.model.source.spi.EntitySource
getBatchSize, getCustomLoaderName, getCustomPersisterClassName, getCustomSqlDelete, getCustomSqlInsert, getCustomSqlUpdate, getFilterSources, getNamedNativeQueries, getNamedQueries, getPrimaryTable, getProxy, getSecondaryTableMap, getSynchronizedTableNames, getXmlNodeName, isAbstract, isDynamicInsert, isDynamicUpdate, isLazy, isSelectBeforeUpdateMethods inherited from interface org.hibernate.boot.model.source.spi.IdentifiableTypeSource
getHierarchy, getJpaCallbackClasses, getLocalMetadataBuildingContext, getOrigin, getSubTypes, getSuperType, getTypeNameMethods inherited from interface org.hibernate.boot.model.source.spi.ToolingHintContextContainer
getToolingHintContext
-
Constructor Details
-
JoinedSubclassEntitySourceImpl
public JoinedSubclassEntitySourceImpl(MappingDocument sourceMappingDocument, JaxbHbmJoinedSubclassEntityType jaxbJoinedSubclassMapping, EntitySource container)
-
-
Method Details
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()Description copied from interface:ForeignKeyContributingSourceIs "cascade delete" enabled for the foreign key? In other words, if a record in the parent (referenced) table is deleted, should the corresponding records in the child table automatically be deleted?- Specified by:
isCascadeDeleteEnabledin interfaceForeignKeyContributingSource- Returns:
true, if the cascade delete is enabled;false, otherwise.
-
getExplicitForeignKeyName
Description copied from interface:ForeignKeyContributingSourceRetrieve the name of the foreign key as supplied by the user, ornullif the user supplied none.- Specified by:
getExplicitForeignKeyNamein interfaceForeignKeyContributingSource- Returns:
- The user supplied foreign key name.
-
createForeignKeyConstraint
public boolean createForeignKeyConstraint()Description copied from interface:ForeignKeyContributingSourcePrimarily exists to support JPA's@ForeignKey(NO_CONSTRAINT).- Specified by:
createForeignKeyConstraintin interfaceForeignKeyContributingSource- Returns:
trueif the FK constraint should be created,falseif not.
-
getPrimaryKeyColumnSources
Description copied from interface:JoinedSubclassEntitySourceThePrimaryKeyJoinColumnsmapping for the joined-subclass.- Specified by:
getPrimaryKeyColumnSourcesin interfaceJoinedSubclassEntitySource- Returns:
- The
PrimaryKeyJoinColumnSourcelists defined on the joined subclass ornullotherwise.
-
getDiscriminatorMatchValue
Description copied from interface:EntitySourceGet the actual discriminator value in case of a single table inheritance- Specified by:
getDiscriminatorMatchValuein interfaceEntitySource- Overrides:
getDiscriminatorMatchValuein classSubclassEntitySourceImpl- Returns:
- the actual discriminator value in case of a single table inheritance or
nullin case there is no explicit value or a different inheritance scheme
-