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