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