BAEL-20663: Fix usage of org.springframework.data.domain.Sort
This commit is contained in:
parent
fc22587009
commit
80741d0d31
|
@ -49,7 +49,7 @@ public class EmployeeServicesWithKeyValueTemplate implements EmployeeService {
|
|||
@Override
|
||||
public Iterable<Employee> getSortedListOfEmployeesBySalary() {
|
||||
KeyValueQuery query = new KeyValueQuery();
|
||||
query.setSort(new Sort(Sort.Direction.DESC, "salary"));
|
||||
query.setSort(Sort.by(Sort.Direction.DESC, "salary"));
|
||||
return keyValueTemplate.find(query, Employee.class);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue