Annotation Interface OrderBy


@Retention(CLASS) @Target(FIELD) @interface OrderBy
Specifies ordering of related collection of
invalid reference
Relation
relation E.g.: @OrderBy("name, age DESC") List collection; If used as marker (@OrderBy List collection), then collection is ordered by primary key
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Comma-separated list of properties, e.g.
  • Element Details

    • value

      String value
      Comma-separated list of properties, e.g. "propertyA, propertyB, propertyC" To specify direction, add ASC or DESC after property name, e.g.: "propertyA DESC, propertyB ASC" Default direction for each property is ASC If value is omitted, then collection is ordered by primary key
      Default:
      ""