Class JpaSort

java.lang.Object
org.springframework.data.domain.Sort
org.springframework.data.jpa.domain.JpaSort
All Implemented Interfaces:
Serializable, Iterable<Sort.Order>, Supplier<Stream<Sort.Order>>, Streamable<Sort.Order>

public class JpaSort extends Sort
Sort option for queries that wraps JPA metamodel Attributes for sorting.

unsafe(String...) accepts unsafe sort expressions, i.e. the String provided is not necessarily a property but can be an arbitrary expression piped into the query execution.

Author:
Thomas Darimont, Oliver Gierke, Christoph Strobl, David Madden, Jens Schauder, Ngoc Nhan
See Also: