Hibernate Delete Query.
Session session=getSession();
Transaction t=session.beginTransaction();
Query q=session.createQuery("delete from Employee e where e.id='"+id+"'");
q.executeUpdate();
t.commit();
closeSession();
Transaction t=session.beginTransaction();
Query q=session.createQuery("delete from Employee e where e.id='"+id+"'");
q.executeUpdate();
t.commit();
closeSession();