@Override public void save(People people) { if (people.getPeopleId() == null) { dao.save(people); } else { dao.merge(people); } }
@Override public Collection<People> listar() { return dao.list(People.class); }
@Override public People findById(Integer id) { return dao.findById(People.class, id); }
@Override public void delete(People people) { dao.delete(people); }