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();

Popular posts from this blog

Item State change of JComboBox and Get values from database and show Data on JTable.

Jtable with database manually in netbeans.