List of usage examples for org.hibernate Session delete
void delete(Object object);
From source file:br.com.sescacre.controleAcesso.dao.CargosDoSetorDAO.java
public void excluir(CargosDoSetor cds) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(cds); t.commit();//from www . java 2 s . co m s.close(); }
From source file:br.com.sescacre.controleAcesso.dao.CategoriasDao.java
public void excluir(Categorias cat) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(cat); t.commit(); s.close(); }
From source file:br.com.sescacre.controleAcesso.dao.FuncionariosDao.java
public void excluir(Funcionarios user) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(user); t.commit();//ww w . j a v a2s . c o m s.close(); }
From source file:br.com.sescacre.controleAcesso.dao.RegistroDao.java
public void excluir(Registros r) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(r); t.commit(); s.close(); }
From source file:br.com.sescacre.controleAcesso.dao.SetoresDAO.java
public void excluir(Setores setor) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(setor); t.commit();//from ww w . j a v a2s.c o m s.close(); }
From source file:br.com.sescacre.controleAcesso.dao.UnidadesDAO.java
public void excluir(Unidades unidade) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(unidade); t.commit();//from w w w .j a v a 2 s.c om s.close(); }
From source file:br.com.sescacre.controleAcesso.dao.UsuariosDao.java
public void excluir(Usuarios user) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(user); t.commit();//from w w w . j a v a 2 s.c o m s.close(); }
From source file:br.com.sescacre.dao.AlunosDAO.java
public void excluir(Alunos a) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(a); t.commit(); s.close(); }
From source file:br.com.sescacre.dao.CidadesDAO.java
public void excluir(Cidades cid) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(cid); t.commit(); s.close(); }
From source file:br.com.sescacre.dao.ContatosDAO.java
public void excluir(Contatos c) { Session s = HibernateUtil.getSession(); Transaction t = s.beginTransaction(); s.delete(c); t.commit(); s.close(); }