Top Description Fields Constructors Methods
org.hibernate.mapping

public Class Set

extends Collection
Class Inheritance
Imports
java.util.function.Supplier, org.hibernate.MappingException, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.engine.spi.Mapping, org.hibernate.resource.beans.spi.ManagedBean, org.hibernate.type.CollectionType, .OrderedSetType, .SetType, .SortedSetType, org.hibernate.usertype.UserCollectionType

A mapping model object representing a collection of type java.util.List. A set has no nullable element columns (unless it is a one-to-many association). It has a primary key consisting of all columns (i.e. key columns + element columns).
Author
Gavin King

Field Summary

Inherited from org.hibernate.mapping.Collection:
DEFAULT_ELEMENT_COLUMN_NAMEDEFAULT_KEY_COLUMN_NAME

Constructor Summary

AccessConstructor and Description
public
Set(MetadataBuildingContext buildingContext, PersistentClass owner)

Used by hbm.xml binding

public
Set(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass persistentClass, MetadataBuildingContext buildingContext)

Used by annotation binding

private
Set(Collection original)

Method Summary

Modifier and TypeMethod and Description
public Object
public Set
pack-priv void
public CollectionType
public boolean
public void
validate(Mapping mapping)

Overrides org.hibernate.mapping.Collection.validate.

Deprecated as a consequence of Mapping being deprecated.
Inherited from org.hibernate.mapping.Collection:
addFilteraddManyToManyFilteraddSynchronizedTablecreateAllKeyscreateForeignKeycreateUniqueKeyenableSoftDeletegetBatchSizegetBuildingContextgetCacheConcurrencyStrategygetCacheRegionNamegetCollectionPersisterClassgetCollectionSemanticsgetCollectionTablegetCollectionTypegetColumnInsertabilitygetColumnsgetColumnSpangetColumnUpdateabilitygetComparatorgetComparatorClassNamegetCustomSQLDeletegetCustomSQLDeleteAllgetCustomSQLDeleteAllCheckStylegetCustomSQLDeleteCheckStylegetCustomSQLInsertgetCustomSQLInsertCheckStylegetCustomSQLUpdategetCustomSQLUpdateCheckStylegetElementgetFetchModegetFiltersgetKeygetLoaderNamegetManyToManyFiltersgetManyToManyOrderinggetManyToManyWheregetMappedByPropertygetMetadatagetOrderBygetOwnergetOwnerEntityNamegetReferencedPropertyNamegetRolegetSelectablesgetServiceRegistrygetSoftDeleteColumngetSynchronizedTablesgetTablegetTypegetTypeNamegetTypeParametersgetWherehasAnyInsertableColumnshasAnyUpdatableColumnshasFormulahasOrderhasOrphanDeleteisAlternateUniqueKeyisArrayisColumnInsertableisColumnUpdateableisCustomDeleteAllCallableisCustomDeleteCallableisCustomInsertCallableisCustomUpdateCallableisExtraLazyisIdentifiedisIndexedisInverseisLazyisMapisMutableisNullableisOneToManyisOptimisticLockedisPrimitiveArrayisSameisSameisSameisSimpleValueisSortedisSubselectLoadableisValidsetBatchSizesetCacheConcurrencyStrategysetCacheRegionNamesetCollectionPersisterClasssetCollectionTablesetComparatorsetComparatorClassNamesetCustomSQLDeletesetCustomSQLDeleteAllsetCustomSQLInsertsetCustomSQLUpdatesetElementsetExtraLazysetFetchModesetInversesetKeysetLazysetLoaderNamesetManyToManyOrderingsetManyToManyWheresetMappedByPropertysetMutablesetOptimisticLockedsetOrderBysetOrphanDeletesetReferencedPropertyNamesetRolesetSortedsetSubselectLoadablesetTypeNamesetTypeParameterssetTypeParameterssetTypeUsingReflectionsetWheretoString

Constructor Detail

Setback to summary
public Set(MetadataBuildingContext buildingContext, PersistentClass owner)

Used by hbm.xml binding

Setback to summary
public Set(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass persistentClass, MetadataBuildingContext buildingContext)

Used by annotation binding

Setback to summary
private Set(Collection original)

Method Detail

acceptback to summary
public Object accept(ValueVisitor visitor)

Implements org.hibernate.mapping.Value.accept.

copyback to summary
public Set copy()

Implements org.hibernate.mapping.Value.copy.

Annotations
@Override
createPrimaryKeyback to summary
pack-priv void createPrimaryKey()

Implements abstract org.hibernate.mapping.Collection.createPrimaryKey.

getDefaultCollectionTypeback to summary
public CollectionType getDefaultCollectionType()

Implements abstract org.hibernate.mapping.Collection.getDefaultCollectionType.

isSetback to summary
public boolean isSet()

Overrides org.hibernate.mapping.Collection.isSet.

validateback to summary
public void validate(Mapping mapping) throws MappingException

Overrides org.hibernate.mapping.Collection.validate.

Deprecated

as a consequence of Mapping being deprecated. See corresponding docs for further information.