Package org.hibernate.mapping
Class Bag
java.lang.Object
org.hibernate.mapping.Collection
org.hibernate.mapping.Bag
- All Implemented Interfaces:
Serializable
,Fetchable
,Filterable
,SoftDeletable
,Value
A mapping model object representing a collection of type
Collection
which may
contain duplicates. Since a bag permits duplicates, it has no primary key- See Also:
-
Field Summary
Fields inherited from class org.hibernate.mapping.Collection
DEFAULT_ELEMENT_COLUMN_NAME, DEFAULT_KEY_COLUMN_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionBag
(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) Annotation bindingBag
(MetadataBuildingContext buildingContext, PersistentClass owner) hbm.xml binding -
Method Summary
Methods inherited from class org.hibernate.mapping.Collection
addFilter, addManyToManyFilter, addSynchronizedTable, createAllKeys, createForeignKey, createUniqueKey, enableSoftDelete, getBatchSize, getBuildingContext, getCacheConcurrencyStrategy, getCacheRegionName, getCollectionSemantics, getCollectionTable, getCollectionType, getColumnInsertability, getColumns, getColumnSpan, getColumnUpdateability, getComparator, getComparatorClassName, getCustomSQLDelete, getCustomSQLDeleteAll, getCustomSQLDeleteAllCheckStyle, getCustomSQLInsert, getCustomSQLUpdate, getDeleteAllExpectation, getDeleteExpectation, getElement, getFetchMode, getFilters, getInsertExpectation, getKey, getLoaderName, getManyToManyFilters, getManyToManyOrdering, getManyToManyWhere, getMappedByProperty, getMetadata, getOrderBy, getOwner, getOwnerEntityName, getQueryCacheLayout, getReferencedPropertyName, getRole, getSelectables, getServiceRegistry, getSoftDeleteColumn, getSynchronizedTables, getTable, getType, getTypeName, getTypeParameters, getUpdateExpectation, getWhere, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasFormula, hasOrder, hasOrphanDelete, isAlternateUniqueKey, isArray, isColumnInsertable, isColumnUpdateable, isCustomDeleteAllCallable, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isExtraLazy, isIdentified, isIndexed, isInverse, isLazy, isMap, isMutable, isNullable, isOneToMany, isOptimisticLocked, isPrimitiveArray, isSame, isSame, isSame, isSet, isSimpleValue, isSorted, isSubselectLoadable, isValid, setBatchSize, setCacheConcurrencyStrategy, setCacheRegionName, setCollectionTable, setComparator, setComparatorClassName, setCustomSQLDelete, setCustomSQLDeleteAll, setCustomSQLInsert, setCustomSQLUpdate, setDeleteAllExpectation, setDeleteExpectation, setElement, setExtraLazy, setFetchMode, setInsertExpectation, setInverse, setKey, setLazy, setLoaderName, setManyToManyOrdering, setManyToManyWhere, setMappedByProperty, setMutable, setOptimisticLocked, setOrderBy, setOrphanDelete, setQueryCacheLayout, setReferencedPropertyName, setRole, setSorted, setSubselectLoadable, setTypeName, setTypeParameters, setTypeParameters, setTypeUsingReflection, setUpdateExpectation, setWhere, toString, validate, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.mapping.Value
checkColumnDuplication, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getSelectableType, getVirtualSelectables, isValid
-
Constructor Details
-
Bag
hbm.xml binding -
Bag
public Bag(Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver, PersistentClass owner, MetadataBuildingContext buildingContext) Annotation binding
-
-
Method Details
-
copy
-
getDefaultCollectionType
- Specified by:
getDefaultCollectionType
in classCollection
-
accept
-