Annotation Type OrderBy


@Retention(CLASS) @Target(FIELD) public @interface OrderBy
Orders a loaded entity collection by target attributes.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Orders loaded related entities by Java scalar attribute names.
  • Element Details

    • value

      String value
      Orders loaded related entities by Java scalar attribute names. Use comma-separated names, optionally followed by ASC or DESC. Cannot be combined with OrderColumn.
      Returns:
      ordering expression