1718192021222324
public class EmployeeRolesService implements RepositoryService<EmployeeRoles> { @Override public EmployeeRoles store(EmployeeRoles employeeRoles) { EmployeeRolesDAO repository = new EmployeeRolesDAO(); return repository.save(employeeRoles); }
242526272829303132
} @Override public void remove(EmployeeRoles employeeRoles) { EmployeeRolesDAO repository = new EmployeeRolesDAO(); repository.delete(employeeRoles); }
3233343536373839
} @Override public Collection<EmployeeRoles> getAll() { EmployeeRolesDAO repository = new EmployeeRolesDAO(); return repository.getAll(); }
3839404142434445
return repository.getAll(); } @Override public EmployeeRoles getById(Serializable id) { EmployeeRolesDAO repository = new EmployeeRolesDAO(); return repository.get(id); }