Package org.hibernate.mapping
Class JoinedSubclass
- java.lang.Object
-
- org.hibernate.mapping.PersistentClass
-
- org.hibernate.mapping.Subclass
-
- org.hibernate.mapping.JoinedSubclass
-
- All Implemented Interfaces:
Serializable
,AttributeContainer
,Contributable
,Filterable
,IdentifiableTypeClass
,MetaAttributable
,TableContainer
,TableOwner
public class JoinedSubclass extends Subclass implements TableOwner
A mapping model object that represents a subclass in a "joined" or "table per subclass" inheritance hierarchy.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.hibernate.mapping.PersistentClass
NOT_NULL_DISCRIMINATOR_MAPPING, NULL_DISCRIMINATOR_MAPPING, synchronizedTables
-
-
Constructor Summary
Constructors Constructor Description JoinedSubclass(PersistentClass superclass, MetadataBuildingContext metadataBuildingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(PersistentClassVisitor mv)
KeyValue
getKey()
List<Property>
getReferenceableProperties()
Build a list of properties which may be referenced in association mappings.Table
getTable()
void
setKey(KeyValue key)
void
setTable(Table table)
void
validate(Metadata mapping)
-
Methods inherited from class org.hibernate.mapping.Subclass
addJoin, addMappedSuperclassProperty, addProperty, addSubclassJoin, addSubclassProperty, addSubclassTable, createForeignKey, getCacheConcurrencyStrategy, getDeclaredIdentifierProperty, getDeclaredVersion, getDiscriminator, getEntityPersisterClass, getFilters, getIdentifier, getIdentifierMapper, getIdentifierProperty, getJoinClosure, getJoinClosureSpan, getKeyClosure, getNaturalIdCacheRegionName, getOptimisticLockStyle, getPropertyClosure, getPropertyClosureSpan, getRootClass, getRootTable, getSubclassId, getSuperclass, getSynchronizedTables, getTableClosure, getVersion, getWhere, hasEmbeddedIdentifier, hasIdentifierProperty, hasSubselectLoadableCollections, isClassOrSuperclassJoin, isClassOrSuperclassTable, isDiscriminatorInsertable, isExplicitPolymorphism, isForceDiscriminator, isInherited, isJoinedSubclass, isMutable, isPolymorphic, isVersioned, setEntityPersisterClass, setSuperclass
-
Methods inherited from class org.hibernate.mapping.PersistentClass
addCallbackDefinitions, addCheckConstraint, addFilter, addSubclass, addSynchronizedTable, applyProperty, assignCheckConstraintsToTable, checkColumnDuplication, contains, createPrimaryKey, findSecondaryTable, findTable, getBatchSize, getCallbackDefinitions, getCheckConstraints, getClassName, getContributor, getCustomSQLDelete, getCustomSQLDeleteCheckStyle, getCustomSQLInsert, getCustomSQLInsertCheckStyle, getCustomSQLUpdate, getCustomSQLUpdateCheckStyle, getDeclaredIdentifierMapper, getDeclaredProperties, getDeleteExpectation, getDirectSubclasses, getDiscriminatorValue, getEntityName, getIdentityTable, getImplicitTable, getInsertExpectation, getJoinNumber, getJoins, getJpaEntityName, getLoaderName, getMappedClass, getMetaAttribute, getMetaAttributes, getNonDuplicatedProperties, getOptimisticLockMode, getProperties, getProperty, getProxyInterface, getProxyInterfaceName, getQueryCacheLayout, getRecursiveProperty, getReferencedProperty, getSecondaryTable, getServiceRegistry, getSubclassClosure, getSubclasses, getSubclassJoinClosure, getSubclassProperty, getSubclassPropertyClosure, getSubclassSpan, getSubclassTableClosure, getSubTypes, getSuperMappedSuperclass, getSuperPersistentClass, getSuperType, getTable, getUnjoinedProperties, getUpdateExpectation, hasCollectionNotReferencingPK, hasIdentifierMapper, hasNaturalId, hasPartitionedSelectionMapping, hasPojoRepresentation, hasProperty, hasSelectBeforeUpdate, hasSubclasses, isAbstract, isCached, isCachingExplicitlyRequested, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isDefinedOnMultipleSubclasses, isDiscriminatorValueNotNull, isDiscriminatorValueNull, isLazy, isPropertyDefinedInHierarchy, isPropertyDefinedInSuperHierarchy, prepareForMappingModel, setAbstract, setBatchSize, setCached, setCachingExplicitlyRequested, setClassName, setCustomSQLDelete, setCustomSQLInsert, setCustomSQLUpdate, setDeclaredIdentifierMapper, setDeleteExpectation, setDiscriminatorValue, setDynamicInsert, setDynamicUpdate, setEntityName, setIdentifierMapper, setInsertExpectation, setJpaEntityName, setLazy, setLoaderName, setMetaAttributes, setOptimisticLockMode, setOptimisticLockStyle, setProxyInterfaceName, setQueryCacheLayout, setSelectBeforeUpdate, setSubselectLoadableCollections, setSuperMappedSuperclass, setUpdateExpectation, toString, useDynamicInsert, useDynamicUpdate
-
-
-
-
Constructor Detail
-
JoinedSubclass
public JoinedSubclass(PersistentClass superclass, MetadataBuildingContext metadataBuildingContext)
-
-
Method Detail
-
getTable
public Table getTable()
- Specified by:
getTable
in interfaceAttributeContainer
- Overrides:
getTable
in classSubclass
-
setTable
public void setTable(Table table)
- Specified by:
setTable
in interfaceTableOwner
-
setKey
public void setKey(KeyValue key)
-
validate
public void validate(Metadata mapping) throws MappingException
- Overrides:
validate
in classPersistentClass
- Throws:
MappingException
-
getReferenceableProperties
public List<Property> getReferenceableProperties()
Description copied from class:PersistentClass
Build a list of properties which may be referenced in association mappings.Includes properties defined in superclasses of the mapping inheritance. Includes all properties defined as part of a join.
- Overrides:
getReferenceableProperties
in classPersistentClass
- Returns:
- The referenceable property iterator.
- See Also:
PersistentClass.getReferencedProperty(java.lang.String)
-
accept
public Object accept(PersistentClassVisitor mv)
-
-