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
|
@Override
|
||||||
public Iterable<Employee> getSortedListOfEmployeesBySalary() {
|
public Iterable<Employee> getSortedListOfEmployeesBySalary() {
|
||||||
KeyValueQuery query = new KeyValueQuery();
|
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);
|
return keyValueTemplate.find(query, Employee.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user