Class Bag
java.lang.Object
org.hibernate.mapping.Collection
org.hibernate.mapping.Bag
- All Implemented Interfaces:
Serializable, AuxiliaryTableHolder, Fetchable, Filterable, SoftDeletable, Stateful, 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 Collection
DEFAULT_ELEMENT_COLUMN_NAME, DEFAULT_KEY_COLUMN_NAMEFields inherited from interface SoftDeletable
INDICATOR -
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 Collection
addAuxiliaryColumn, addFilter, addManyToManyFilter, addSynchronizedTable, createAllKeys, createForeignKey, createUniqueKey, enableSoftDelete, getAuxiliaryColumn, getAuxiliaryTable, getBatchSize, getBuildingContext, getCacheConcurrencyStrategy, getCacheRegionName, getCollectionSemantics, getCollectionTable, getCollectionType, getColumnInsertability, getColumns, getColumnSpan, getColumnUpdateability, getComparator, getComparatorClassName, getCustomSQLDelete, getCustomSQLDeleteAll, getCustomSQLInsert, getCustomSQLUpdate, getDeleteAllExpectation, getDeleteExpectation, getElement, getFetchMode, getFilters, getInsertExpectation, getKey, getLoaderName, getMainTable, getManyToManyFilters, getManyToManyOrdering, getManyToManyWhere, getMappedByProperty, getMetadata, getOrderBy, getOwner, getOwnerEntityName, getQueryCacheLayout, getReferencedPropertyName, getRole, getSelectables, getServiceRegistry, getSoftDeleteStrategy, getStateManagementType, getSynchronizedTables, getTable, getType, getTypeName, getTypeParameters, getUpdateExpectation, getWhere, hasAnyInsertableColumns, hasAnyUpdatableColumns, hasColumns, hasFormula, hasOrder, hasOrphanDelete, isAlternateUniqueKey, isArray, isAuxiliaryColumnInPrimaryKey, isColumnInsertable, isColumnUpdateable, isCustomDeleteAllCallable, isCustomDeleteCallable, isCustomInsertCallable, isCustomUpdateCallable, isExtraLazy, isIdentified, isIndexed, isInverse, isLazy, isMainTablePartitioned, isMap, isMutable, isNullable, isOneToMany, isOptimisticLocked, isPartitionKey, isPrimaryKeyDisabled, isPrimitiveArray, isSame, isSame, isSame, isSet, isSimpleValue, isSorted, isSubselectLoadable, isValid, setAuxiliaryColumnInPrimaryKey, setAuxiliaryTable, setBatchSize, setCacheConcurrencyStrategy, setCacheRegionName, setCollectionTable, setComparator, setComparatorClassName, setCustomSQLDelete, setCustomSQLDeleteAll, setCustomSQLInsert, setCustomSQLUpdate, setDeleteAllExpectation, setDeleteExpectation, setElement, setExtraLazy, setFetchMode, setInsertExpectation, setInverse, setKey, setLazy, setLoaderName, setMainTablePartitioned, setManyToManyOrdering, setManyToManyWhere, setMappedByProperty, setMutable, setNonInsertable, setNonUpdatable, setOptimisticLocked, setOrderBy, setOrphanDelete, setPrimaryKeyDisabled, setQueryCacheLayout, setReferencedPropertyName, setRole, setSorted, setStateManagementType, setSubselectLoadable, setTypeName, setTypeParameters, setTypeParameters, setTypeUsingReflection, setUpdateExpectation, setWhere, toString, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SoftDeletable
getSoftDeleteColumnMethods inherited from interface Stateful
getStateManagementMethods inherited from interface Value
checkColumnDuplication, getConstraintColumns, getExtraCreateTableInfo, getSelectableType, getVirtualSelectables
-
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:
getDefaultCollectionTypein classCollection
-
accept
-