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,MetaAttributable,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 Deprecated Methods Modifier and Type Method Description Objectaccept(PersistentClassVisitor mv)KeyValuegetKey()List<Property>getReferenceableProperties()Build a list of properties which may be referenced in association mappings.Iterator<Property>getReferenceablePropertyIterator()Deprecated.TablegetTable()voidsetKey(KeyValue key)voidsetTable(Table table)voidvalidate(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, getJoinClosureIterator, getJoinClosureSpan, getKeyClosure, getKeyClosureIterator, getNaturalIdCacheRegionName, getOptimisticLockStyle, getPropertyClosure, getPropertyClosureIterator, getPropertyClosureSpan, getRootClass, getRootTable, getSubclassId, getSuperclass, getSynchronizedTables, getTableClosure, getTableClosureIterator, 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, checkColumnDuplication, checkColumnDuplication, checkPropertyColumnDuplication, contains, createPrimaryKey, getBatchSize, getCallbackDefinitions, getCheckConstraints, getClassName, getContributor, getCustomSQLDelete, getCustomSQLDeleteCheckStyle, getCustomSQLInsert, getCustomSQLInsertCheckStyle, getCustomSQLUpdate, getCustomSQLUpdateCheckStyle, getDeclaredIdentifierMapper, getDeclaredProperties, getDeclaredPropertyIterator, getDirectSubclasses, getDiscriminatorColumnIterator, getDiscriminatorValue, getEntityName, getIdentityTable, getJoinIterator, getJoinNumber, getJoins, getJpaEntityName, getLoaderName, getMappedClass, getMetaAttribute, getMetaAttributes, getNonDuplicatedProperties, getNonDuplicatedPropertyIterator, getOptimisticLockMode, getProperties, getProperty, getPropertyIterator, getProxyInterface, getProxyInterfaceName, getRecursiveProperty, getReferencedProperty, getServiceRegistry, getSubclassClosure, getSubclassClosureIterator, getSubclasses, getSubclassIterator, getSubclassJoinClosure, getSubclassJoinClosureIterator, getSubclassProperty, getSubclassPropertyClosure, getSubclassPropertyClosureIterator, getSubclassSpan, getSubclassTableClosure, getSubclassTableClosureIterator, getSuperMappedSuperclass, getUnjoinedProperties, getUnjoinedPropertyIterator, hasCollectionNotReferencingPK, hasIdentifierMapper, hasNaturalId, hasPartitionedSelectionMapping, hasPojoRepresentation, hasProperty, hasSelectBeforeUpdate, hasSubclasses, isAbstract, isCached, isCachingExplicitlyRequested, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isDiscriminatorValueNotNull, isDiscriminatorValueNull, isLazy, isPropertyDefinedInHierarchy, isPropertyDefinedInSuperHierarchy, prepareForMappingModel, setAbstract, setBatchSize, setCached, setCachingExplicitlyRequested, setClassName, setCustomSqlDelete, setCustomSQLDelete, setCustomSqlInsert, setCustomSQLInsert, setCustomSqlUpdate, setCustomSQLUpdate, setDeclaredIdentifierMapper, setDiscriminatorValue, setDynamicInsert, setDynamicUpdate, setEntityName, setIdentifierMapper, setJpaEntityName, setLazy, setLoaderName, setMetaAttributes, setOptimisticLockMode, setOptimisticLockStyle, setProxyInterfaceName, setSelectBeforeUpdate, setSubselectLoadableCollections, setSuperMappedSuperclass, toString, useDynamicInsert, useDynamicUpdate
-
-
-
-
Constructor Detail
-
JoinedSubclass
public JoinedSubclass(PersistentClass superclass, MetadataBuildingContext metadataBuildingContext)
-
-
Method Detail
-
getTable
public Table getTable()
- Specified by:
getTablein interfaceAttributeContainer- Overrides:
getTablein classSubclass
-
setTable
public void setTable(Table table)
- Specified by:
setTablein interfaceTableOwner
-
setKey
public void setKey(KeyValue key)
-
validate
public void validate(Metadata mapping) throws MappingException
- Overrides:
validatein classPersistentClass- Throws:
MappingException
-
getReferenceablePropertyIterator
@Deprecated public Iterator<Property> getReferenceablePropertyIterator()
Deprecated.Description copied from class:PersistentClassBuild an iterator 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:
getReferenceablePropertyIteratorin classPersistentClass- Returns:
- The referenceable property iterator.
- See Also:
for a discussion of "referenceable"
-
getReferenceableProperties
public List<Property> getReferenceableProperties()
Description copied from class:PersistentClassBuild 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:
getReferenceablePropertiesin classPersistentClass- Returns:
- The referenceable property iterator.
- See Also:
for a discussion of "referenceable"
-
accept
public Object accept(PersistentClassVisitor mv)
-
-