Class PersistentIdentifierBag<E>

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

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

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

    See Also:
    Serialized Form