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
|
@Override
|
||||||
public List<Employee> findSupervisorBySQL(String keywordTypeName, String sortOrder) {
|
public List<Employee> findSupervisorBySQL(String keywordTypeName, String direction) {
|
||||||
|
|
||||||
String nativeSQL = "select " +
|
String nativeSQL = "select " +
|
||||||
"role.id " +
|
"role.id " +
|
||||||
@ -65,7 +65,7 @@ public class SupervisorServiceImpl extends AbstractQueryService<Employee, Long>
|
|||||||
"group by " +
|
"group by " +
|
||||||
"role_id " +
|
"role_id " +
|
||||||
"order by " +
|
"order by " +
|
||||||
"count(keywords_id) " + sortOrder + ", user.lastName asc ";
|
"count(keywords_id) " + direction + ", user.lastName asc ";
|
||||||
|
|
||||||
List<BigInteger> dBlist= new ArrayList<BigInteger>();
|
List<BigInteger> dBlist= new ArrayList<BigInteger>();
|
||||||
//noinspection unchecked
|
//noinspection unchecked
|
||||||
|
Loading…
x
Reference in New Issue
Block a user