Top Description Fields Constructors Methods
org.hibernate.mapping

public Class Bag

extends Collection
Class Inheritance
Imports
java.util.function.Supplier, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.resource.beans.spi.ManagedBean, org.hibernate.type.BagType, .CollectionType, org.hibernate.usertype.UserCollectionType

A mapping model object representing a collection of type java.util.Collection which may contain duplicates. Since a bag permits duplicates, it has no primary key
Author
Gavin King

Field Summary

Inherited from org.hibernate.mapping.Collection:
DEFAULT_ELEMENT_COLUMN_NAMEDEFAULT_KEY_COLUMN_NAME

Constructor Summary

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

hbm.xml binding

public
Bag(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)

Annotation binding

private
Bag(Collection original)

Method Summary

Modifier and TypeMethod and Description
public Object
public Bag
pack-priv void
public CollectionType
Inherited from org.hibernate.mapping.Collection:
addFilteraddManyToManyFilteraddSynchronizedTablecreateAllKeyscreateForeignKeycreateUniqueKeyenableSoftDeletegetBatchSizegetBuildingContextgetCacheConcurrencyStrategygetCacheRegionNamegetCollectionPersisterClassgetCollectionSemanticsgetCollectionTablegetCollectionTypegetColumnInsertabilitygetColumnsgetColumnSpangetColumnUpdateabilitygetComparatorgetComparatorClassNamegetCustomSQLDeletegetCustomSQLDeleteAllgetCustomSQLDeleteAllCheckStylegetCustomSQLDeleteCheckStylegetCustomSQLInsertgetCustomSQLInsertCheckStylegetCustomSQLUpdategetCustomSQLUpdateCheckStylegetElementgetFetchModegetFiltersgetKeygetLoaderNamegetManyToManyFiltersgetManyToManyOrderinggetManyToManyWheregetMappedByPropertygetMetadatagetOrderBygetOwnergetOwnerEntityNamegetReferencedPropertyNamegetRolegetSelectablesgetServiceRegistrygetSoftDeleteColumngetSynchronizedTablesgetTablegetTypegetTypeNamegetTypeParametersgetWherehasAnyInsertableColumnshasAnyUpdatableColumnshasFormulahasOrderhasOrphanDeleteisAlternateUniqueKeyisArrayisColumnInsertableisColumnUpdateableisCustomDeleteAllCallableisCustomDeleteCallableisCustomInsertCallableisCustomUpdateCallableisExtraLazyisIdentifiedisIndexedisInverseisLazyisMapisMutableisNullableisOneToManyisOptimisticLockedisPrimitiveArrayisSameisSameisSameisSetisSimpleValueisSortedisSubselectLoadableisValidsetBatchSizesetCacheConcurrencyStrategysetCacheRegionNamesetCollectionPersisterClasssetCollectionTablesetComparatorsetComparatorClassNamesetCustomSQLDeletesetCustomSQLDeleteAllsetCustomSQLInsertsetCustomSQLUpdatesetElementsetExtraLazysetFetchModesetInversesetKeysetLazysetLoaderNamesetManyToManyOrderingsetManyToManyWheresetMappedByPropertysetMutablesetOptimisticLockedsetOrderBysetOrphanDeletesetReferencedPropertyNamesetRolesetSortedsetSubselectLoadablesetTypeNamesetTypeParameterssetTypeParameterssetTypeUsingReflectionsetWheretoStringvalidate

Constructor Detail

Bagback to summary
public Bag(MetadataBuildingContext buildingContext, PersistentClass owner)

hbm.xml binding

Bagback to summary
public Bag(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext)

Annotation binding

Bagback to summary
private Bag(Collection original)

Method Detail

acceptback to summary
public Object accept(ValueVisitor visitor)

Implements org.hibernate.mapping.Value.accept.

copyback to summary
public Bag 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.