Search in sources :

Example 1 with Identity

use of org.seasar.doma.it.domain.Identity in project doma by domaframework.

the class SqlFileSelectCollectorTest method testCollectAll2.

@Test
public void testCollectAll2(Config config) throws Exception {
    EmployeeDao dao = new EmployeeDaoImpl(config);
    Map<Identity<Department>, List<Employee>> group = dao.collectAll(Collectors.groupingBy(Employee::getDepartmentId));
    System.out.println(group);
}
Also used : EmployeeDao(org.seasar.doma.it.dao.EmployeeDao) List(java.util.List) Identity(org.seasar.doma.it.domain.Identity) EmployeeDaoImpl(org.seasar.doma.it.dao.EmployeeDaoImpl) Test(org.junit.jupiter.api.Test)

Aggregations

List (java.util.List)1 Test (org.junit.jupiter.api.Test)1 EmployeeDao (org.seasar.doma.it.dao.EmployeeDao)1 EmployeeDaoImpl (org.seasar.doma.it.dao.EmployeeDaoImpl)1 Identity (org.seasar.doma.it.domain.Identity)1