Annotation Type MultiCollectionMapping


@Target({METHOD,PARAMETER})
@Retention(RUNTIME)
public @interface 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 Elements 
    Modifier and Type Optional Element Description
    Class<? extends Comparator> comparator
    The comparator that should be used for sorting of the collection.
    boolean forceUnique
    Specifies whether the elements should be forcefully deduplicated if the collection allows duplicates or not.
    boolean ordered
    Specifies whether entries in the collection should be ordered.
  • Element Details

    • comparator

      Class<? extends Comparator> comparator
      The comparator that should be used for sorting of the collection.
      Returns:
      the comparator used for sorting
      Default:
      java.util.Comparator.class
    • ordered

      boolean ordered
      Specifies whether entries in the collection should be ordered.
      Returns:
      true if ordered, false otherwise
      Default:
      false
    • forceUnique

      boolean forceUnique
      Specifies 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