Examples of QEmbeddedIdExampleEmployee


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

    EmbeddedIdExampleEmployee emp3 = new EmbeddedIdExampleEmployee();
    emp3.setEmployeePk(new EmbeddedIdExampleEmployeePK(1L, null));
    emp3.setDepartment(dep2);
    emp3 = employeeRepositoryWithEmbeddedId.save(emp3);

    QEmbeddedIdExampleEmployee emp = QEmbeddedIdExampleEmployee.embeddedIdExampleEmployee;
    List<EmbeddedIdExampleEmployee> result = employeeRepositoryWithEmbeddedId.findAll(
        emp.employeePk.departmentId.eq(dep2.getDepartmentId()), emp.employeePk.employeeId.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.