Class PersistentBag

All Implemented Interfaces:
Serializable, Iterable, Collection, List, SequencedCollection, PersistentCollection

public class PersistentBag extends AbstractPersistentCollection implements List
An unordered, unkeyed collection that can contain the same element multiple times. The Java collections API, curiously, has no Bag. Most developers seem to use Lists to represent bag semantics, so Hibernate follows this practice.
See Also: