Annotation Interface Bag


Specifies that an attribute of type List is semantically a bag - that the order of the list elements is not significant, and should not be persistent.

This annotation is not necessary unless the default list semantics are LIST, for example via DefaultListSemantics on the declaring package or module. However, its use is still encouraged, since the explicit annotation serves as useful documentation.

API Note:
This annotation causes an exception if the attribute is also annotated OrderColumn or ListIndexBase.