In JavaDoc of Session class the description of delete method is:
Remove a persistent instance from the datastore. The argument may be
You can easily achieve by following simple hibernate as follows,
Session session=getSession(); String hql = "delete from Student where classId= :id"; session.createQuery(hql).setString("id", new Integer(id)).executeUpdate();