@RequestMapping(value = "/saveEmployee", method = RequestMethod.POST)
    public String saveCustomer(@ModelAttribute("employee") Employee employee, BindingResult result) {
        if (employee.getEmployeeId() == null)
        {
            GenericDAO<Worktype> worktypesDAO = getWorktypesDAO();
            
            Set<Worktype> worktypes = new HashSet<Worktype>();
            for (Worktype type : employee.getWorktypes())
            {
                Worktype typeObject = worktypesDAO.getWithCriterion(Expression.eq("name", type.getName())).get(0);
                typeObject.getEmployees().add(employee);
            }

            getEmployeesDAO().create(employee);
        }
        else
        {
            Employee employeeObject = getEmployeesDAO().getById(employee.getEmployeeId());
            employeeObject.setDataWithObject(employee);
            getEmployeesDAO().update(employeeObject);
        }
        return "redirect:employees.htm";
    }