Examples of QIdClassExampleEmployee


Examples of org.springframework.data.jpa.domain.sample.QIdClassExampleEmployee

    IdClassExampleEmployee emp3 = new IdClassExampleEmployee();
    emp3.setEmpId(1L);
    emp3.setDepartment(dep2);
    emp3 = employeeRepositoryWithIdClass.save(emp3);

    QIdClassExampleEmployee emp = QIdClassExampleEmployee.idClassExampleEmployee;
    List<IdClassExampleEmployee> result = employeeRepositoryWithIdClass.findAll(
        emp.department.departmentId.eq(dep2.getDepartmentId()), emp.empId.asc());

    assertThat(result, is(notNullValue()));
    assertThat(result, hasSize(2));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.