List of usage examples for org.hibernate Session delete
void delete(Object object);
From source file:br.com.sescacre.dao.EnderecosDAO.java
public void excluir(Enderecos end) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(end); t.commit(); s.close(); }
From source file:br.com.sescacre.dao.EstadosDAO.java
public void excluir(Estados es) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(es); t.commit(); s.close(); }
From source file:br.com.sescacre.dao.ExerciciosDAO.java
public void excluir(Exercicios exc) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(exc); t.commit(); s.close(); }
From source file:br.com.sescacre.dao.ExerciciosDoTreinoDAO.java
public void excluir(ExerciciosDoTreino et) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(et); t.commit();/*from w w w. j a va2s . co m*/ s.close(); }
From source file:br.com.sescacre.dao.PessoasDAO.java
public void excluir(Pessoas p) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(p); t.commit(); s.close(); }
From source file:br.com.sescacre.dao.PilaresDAO.java
public void excluir(Pilares p) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(p); t.commit(); s.close(); }
From source file:br.com.sescacre.dao.SubPilar1DAO.java
public void excluir(SubPilares1 sp1) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(sp1); t.commit();/*from ww w . jav a2 s. co m*/ s.close(); }
From source file:br.com.sescacre.dao.SubPilar2DAO.java
public void excluir(SubPilares2 sp2) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(sp2); t.commit();//from ww w. j a va 2s .c o m s.close(); }
From source file:br.com.sescacre.sisrelat.dao.HistoricoChamadaDao.java
public void excluir(HistoricoChamada hc) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(hc); t.commit();// ww w. j av a 2s .c o m s.close(); }
From source file:br.com.sigcopex.dao.CursoDAO.java
public void excluir(Curso curso) { Session sessao = HibernateUtil.getSessionFactory().openSession(); Transaction transacao = null;/* w w w . ja va 2 s .c o m*/ try { transacao = sessao.beginTransaction(); sessao.delete(curso); transacao.commit(); } catch (RuntimeException ex) { if (transacao != null) { transacao.rollback(); } throw ex; } finally { sessao.close(); } }