public GetEmpFindByIDResponse getEmployee(@WebParam(name = "getEmployeeRequest", partName = "parameters", targetNamespace = "http://nl.amis.hr.entities")
GetEmpFindByID parameters) {
List<Emp> result = scottEJB.getEmpFindByID(parameters.getId());
if (result != null && result.size() > 0) {
GetEmpFindByIDResponse response = obj.createGetEmpFindByIDResponse();
Emp emp = result.get(0);
Employee employee = obj.createEmployee();
employee.setCommission(emp.getComm());
employee.setEmployeeNr(emp.getEmpno());
employee.setHiredate(getXMLGregorianCalendar(emp.getHiredate()));
employee.setJob(emp.getJob());
employee.setManager(emp.getMgr());
employee.setName(emp.getEname());
employee.setSalary(emp.getSal());
response.setEmployee(employee);
return response;
}
return null;
}