Package org.hibernate.mapping
Class UnionSubclass
- java.lang.Object
-
- org.hibernate.mapping.PersistentClass
-
- org.hibernate.mapping.Subclass
-
- org.hibernate.mapping.UnionSubclass
-
- All Implemented Interfaces:
Serializable
,AttributeContainer
,Contributable
,Filterable
,IdentifiableTypeClass
,MetaAttributable
,TableContainer
,TableOwner
public class UnionSubclass extends Subclass implements TableOwner
A mapping model object that represents a subclass in a "union" or "table per concrete class" 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 UnionSubclass(PersistentClass superclass, MetadataBuildingContext buildingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(PersistentClassVisitor mv)
Table
getIdentityTable()
protected List<Property>
getNonDuplicatedProperties()
Set<String>
getSynchronizedTables()
Table
getTable()
void
setTable(Table table)
-
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, getKey, getKeyClosure, getNaturalIdCacheRegionName, getOptimisticLockStyle, getPropertyClosure, getPropertyClosureSpan, getRootClass, getRootTable, getSubclassId, getSuperclass, 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, getDirectSubclasses, getDiscriminatorValue, getEntityName, getImplicitTable, getJoinNumber, getJoins, getJpaEntityName, getLoaderName, getMappedClass, getMetaAttribute, getMetaAttributes, getOptimisticLockMode, getProperties, getProperty, getProxyInterface, getProxyInterfaceName, getRecursiveProperty, getReferenceableProperties, getReferencedProperty, getSecondaryTable, getServiceRegistry, getSubclassClosure, getSubclasses, getSubclassJoinClosure, getSubclassProperty, getSubclassPropertyClosure, getSubclassSpan, getSubclassTableClosure, getSubTypes, getSuperMappedSuperclass, getSuperPersistentClass, getSuperType, getTable, getUnjoinedProperties, 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, setCustomSQLDelete, setCustomSqlInsert, setCustomSQLInsert, setCustomSqlUpdate, setCustomSQLUpdate, setDeclaredIdentifierMapper, setDiscriminatorValue, setDynamicInsert, setDynamicUpdate, setEntityName, setIdentifierMapper, setJpaEntityName, setLazy, setLoaderName, setMetaAttributes, setOptimisticLockMode, setOptimisticLockStyle, setProxyInterfaceName, setSelectBeforeUpdate, setSubselectLoadableCollections, setSuperMappedSuperclass, toString, useDynamicInsert, useDynamicUpdate, validate
-
-
-
-
Constructor Detail
-
UnionSubclass
public UnionSubclass(PersistentClass superclass, MetadataBuildingContext buildingContext)
-
-
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
-
getSynchronizedTables
public Set<String> getSynchronizedTables()
- Overrides:
getSynchronizedTables
in classSubclass
-
getNonDuplicatedProperties
protected List<Property> getNonDuplicatedProperties()
- Overrides:
getNonDuplicatedProperties
in classPersistentClass
-
getIdentityTable
public Table getIdentityTable()
- Overrides:
getIdentityTable
in classPersistentClass
-
accept
public Object accept(PersistentClassVisitor mv)
-
-