Package com.blazebit.persistence.view
Annotation Type MultiCollectionMapping
Specifies the behavior of a multi-map collection mapping. This can be used to configure uniqueness and the sort order.
The default sort order of a
SortedSet is the natural order. By using this annotation, the sort order can be overridden.- Since:
- 1.6.0
- Author:
- Christian Beikov
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends Comparator>The comparator that should be used for sorting of the collection.booleanSpecifies whether the elements should be forcefully deduplicated if the collection allows duplicates or not.booleanSpecifies whether entries in the collection should be ordered.
-
Element Details
-
comparator
Class<? extends Comparator> comparatorThe comparator that should be used for sorting of the collection.- Returns:
- the comparator used for sorting
- Default:
- java.util.Comparator.class
-
ordered
boolean orderedSpecifies whether entries in the collection should be ordered.- Returns:
- true if ordered, false otherwise
- Default:
- false
-
forceUnique
boolean forceUniqueSpecifies whether the elements should be forcefully deduplicated if the collection allows duplicates or not.- Returns:
- true if the elements should be forcefully deduplicated, false otherwise
- Default:
- false
-