result = employee;
}
if (tmp instanceof MechanicEntity) {
Mechanic mechanic = new Mechanic();
mechanic.setId(tmp.getId());
mechanic.setEmail(tmp.getEmail());
mechanic.setName(tmp.getName());
mechanic.setPassword(tmp.getPassword());
mechanic.setPatronymic(tmp.getPatronymic());
mechanic.setPhone(tmp.getPhone());
mechanic.setPosition(tmp.getPosition());
mechanic.setRole(tmp.getRole());
mechanic.setSalary(tmp.getSalary());
mechanic.setSurname(tmp.getSurname());
mechanic.setAverageRating(((MechanicEntity) tmp).getAverageRating());
mechanic.setCurrentOrdersAmount(((MechanicEntity) tmp)
.getCurrentOrdersAmount());
result = mechanic;
}