mirror of
https://github.com/apache/openjpa.git
synced 2025-02-24 03:28:35 +00:00
OPENJPA-1579 Committing test code for Dianne Richards.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924391 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41ce320cc0
commit
65385662b0
@ -151,6 +151,19 @@ public class TestSpec10_1_26 extends SQLListenerTestCase {
|
||||
setCandidate(q, Department3.class);
|
||||
rs = q.getResultList();
|
||||
EmployeeName3 d3 = (EmployeeName3) rs.get(0);
|
||||
|
||||
// Check HAVING clause support for KEY
|
||||
query = "select KEY(e) from Department1 d, " +
|
||||
" in (d.empMap) e " +
|
||||
"group by KEY(e) " +
|
||||
"having KEY(e) = 2";
|
||||
q = em.createQuery(query);
|
||||
if (inMemory)
|
||||
setCandidate(q, Department1.class);
|
||||
rs = q.getResultList();
|
||||
Integer deptId = (Integer) rs.get(0);
|
||||
assertEquals("dept id is not 2", 2, deptId.intValue());
|
||||
|
||||
em.close();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user