session.makePersistentAll(emps);
}
protected void nontransactionalQuery(int... expected) {
// QueryBuilder is the sessionFactory for queries
QueryBuilder builder = session.getQueryBuilder();
// QueryDomainType is the main interface
QueryDomainType dobj = builder.createQueryDefinition(Employee.class);
Query query = session.createQuery(dobj);
List<Employee> result = query.getResultList();
Set<Integer> expectedList = new HashSet<Integer>();
for (int i: expected) {
expectedList.add(i);