Class PersistentBag<E>

java.lang.Object
org.hibernate.collection.spi.AbstractPersistentCollection<E>
org.hibernate.collection.spi.PersistentBag<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<E>, LazyInitializable, PersistentCollection<E>

@Incubating public class PersistentBag<E> extends AbstractPersistentCollection<E> implements List<E>
An unordered, un-keyed collection that can contain the same element multiple times. The Java Collections Framework, curiously, has no Bag interface. It is, however, common to use Lists to represent a collection with bag semantics, so Hibernate follows this practice.
See Also:
API Note:
Incubating in terms of making this non-internal. These contracts will be getting cleaned up in following releases.