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

Jtable with database manually in netbeans.

Join in Kotlin coroutines