Class PersistentIdentifierBag<E>

  • All Implemented Interfaces:
    Serializable, Iterable<E>, Collection<E>, List<E>, LazyInitializable, PersistentCollection<E>

    public class PersistentIdentifierBag<E>
    extends AbstractPersistentCollection<E>
    implements List<E>
    An "identifier bag" implements "bag" semantics more efficiently than a regular bag by adding a synthetic identifier column to the table. This identifier is unique over all rows in the table, allowing very efficient updates and deletes. The value of the identifier is never exposed to the application.

    Identifier bags may not be used for a many-to-one association. Furthermore, there is no reason to use inverse="true".

    See Also:
    Serialized Form