List<Person> result = personRepository.findAllByAge(18, 65)
- .sortAsc(Person_.lastName)
- .sortDesc(Person_.age)
+ .orderAsc(Person_.lastName)
+ .orderDesc(Person_.age)
.lockMode(LockModeType.WRITE)
.hint("org.hibernate.timeout", Integer.valueOf(10))
.getResultList();
@@ -1134,6 +1134,21 @@ supported for Hibernate, EclipseLink and
Note that the QueryResult
return type can also be used with method
expressions.