Removed a test which does not work because ORDER BY does not work in hsqldb when the order-by field is not a String.
This commit is contained in:
parent
66bc17f159
commit
5040f9d194
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user