Employee emp = new Employee();
emp.setName("Sunghyouk Bae");
emp.setEmpNo("21011");
emp = employeeRepository.save(emp);
QEmployee $ = QEmployee.employee;
JPAQuery query = new JPAQuery(em);
Employee loaded = query.from($)
.where($.empNo.eq("21011"))
.uniqueResult($);