public void save(Evento evento) { try { simpleEntityManager.beginTransaction(); dao.save(evento); simpleEntityManager.commit(); } catch (Exception e) { e.printStackTrace(); simpleEntityManager.rollBack(); } }
public List<Evento> findAll() { return dao.findAll(); }