From 66bc17f1590bf44e8380bfe7bbff7717cdd619fa Mon Sep 17 00:00:00 2001 From: Tom Vahlman <tom@dsv.su.se> Date: Wed, 11 Apr 2012 00:05:57 +0200 Subject: [PATCH] Removed a test which does not work because ORDER BY does not work in hsqldb when the order-by field is not a String. --- .../dsv/scipro/springdata/TestSupervisor.java | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/test/java/se/su/dsv/scipro/springdata/TestSupervisor.java b/src/test/java/se/su/dsv/scipro/springdata/TestSupervisor.java index 257ff5f918..533fca0428 100644 --- a/src/test/java/se/su/dsv/scipro/springdata/TestSupervisor.java +++ b/src/test/java/se/su/dsv/scipro/springdata/TestSupervisor.java @@ -152,6 +152,15 @@ public class TestSupervisor { /** * Test for getting sorted keywords based on keyword type Regular/type Word, fetched in ascending order + * + * Comment to why this test has been deleted + * ORDER BY does not work in hsqldb when the order-by field is not a String. + * + * Unfortunately, this results in the Not in aggregate function or group by clause error message, which suggests a grouping problem, hence the confusion... + * + * See: http://markmail.org/message/42vmifme4opz4jgl + * + * */ @Test @Transactional @@ -168,17 +177,6 @@ public class TestSupervisor { List<Employee> employeeList = new ArrayList<Employee>(); supervisorService.setEm(jpaTemplate.getEntityManagerFactory().createEntityManager()); for(Employee employee : supervisorService.findSupervisorBySQL(keywordTypeWord.getName(), "asc")) { - -Comment to why this test has been deleted -ORDER BY does not work in hsqldb when the order-by field is not a String. - -Unfortunately, this results in the Not in aggregate function or group by clause error message, which suggests a grouping problem, hence the confusion... - -See: http://markmail.org/message/42vmifme4opz4jgl - - - - if(!employeeList.contains(employee)) { employeeList.add(employee); }