Session session = sessionFactory.getCurrentSession();
SQLQuery sqlQuery = session.createSQLQuery("select * from (select e.name, d.name from employee join department d on e.deptid = d.id where d.id in :deptIds)");
sqlQuery.setParameterList("deptIds", Arrays.asList("Maintenance", "CodeMonkeys"));
List results = sqlQuery.list();
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Test code fragment: