Annotation Type OrderBy


  • @Retention(SOURCE)
    @Target(FIELD)
    public @interface OrderBy
    Specifies ordering of related collection of ToMany 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
      java.lang.String value
      Comma-separated list of properties, e.g.
    • Element Detail

      • value

        java.lang.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:
        ""