@Override public Employee parse(String s, Locale locale) throws ParseException { Collection<Employee> findEmployee = employeeService.listEmployee(); for (Employee e : findEmployee) { if (e.getName().equalsIgnoreCase(s)) { return e; } } return null; }
@Override public String print(Employee employee, Locale locale) { return employee.getName(); }