Code:
Session session = sessionFactory.openSession();
Transaction tx = session.beginTransaction();
int deletedEntities = s.createQuery("delete from MyTable where nodeNo = :nodeNo")
.setInteger("nodeNo", nodeNo)
.executeUpdate();
tx.commit();
session.close();
Note that MyTable has to be your class and nodeNo ist one of its properties mapped. You cannot use aliases here. I assumed that nodeNo is an integer.
The word "from" can be left out.
Read 14.3. Bulk update/delete of the documentation:
http://www.hibernate.org/hib_docs/v3/re ... tch-direct
Best regards
Sven