diff --git a/src/main/java/se/su/dsv/scipro/springdata/serviceimpls/SupervisorServiceImpl.java b/src/main/java/se/su/dsv/scipro/springdata/serviceimpls/SupervisorServiceImpl.java index 7845f3c38e..63fe970f87 100644 --- a/src/main/java/se/su/dsv/scipro/springdata/serviceimpls/SupervisorServiceImpl.java +++ b/src/main/java/se/su/dsv/scipro/springdata/serviceimpls/SupervisorServiceImpl.java @@ -46,7 +46,7 @@ public class SupervisorServiceImpl extends AbstractQueryService<Employee, Long> } @Override - public List<Employee> findSupervisorBySQL(String keywordTypeName, String sortOrder) { + public List<Employee> findSupervisorBySQL(String keywordTypeName, String direction) { String nativeSQL = "select " + "role.id " + @@ -65,7 +65,7 @@ public class SupervisorServiceImpl extends AbstractQueryService<Employee, Long> "group by " + "role_id " + "order by " + - "count(keywords_id) " + sortOrder + ", user.lastName asc "; + "count(keywords_id) " + direction + ", user.lastName asc "; List<BigInteger> dBlist= new ArrayList<BigInteger>(); //noinspection unchecked