Interface PersistentSortInfo

All Superinterfaces:
SortInfo
All Known Subinterfaces:
PersistentPropertyDescriptorSortInfo
All Known Implementing Classes:
PersistentPropertyDescriptorSortInfoImpl, PersistentSortInfoImpl

@NullMarked public interface PersistentSortInfo extends SortInfo
Represents sorting information for persistent sorting operations.
  • Method Details

    • getExpressions

      List<String> getExpressions()
      Retrieves a list of expressions used for persistent sorting.
      Returns:
      a list of expressions
    • setExpressions

      void setExpressions(List<String> expressions)
      Sets the expressions to be used for persistent sorting.

      In case of JPQL, the {E} alias can be used for JPA entities. For instance, "function('calc_total_sum', {E}.id)".

      Note that for KeyValueEntity, the {E} alias is not supported. Use the concrete alias from the query, e.g. "function('calc_total_sum', e.id)".

      Parameters:
      expressions - the expressions to set