In JavaDoc of Session class the description of delete method is:
Remove a persistent instance from the datastore. The argument may be
Hibernate native query sample as follows.
import org.hibernate.query.nativeQuery; String sql = "Delete from Student where classId= :id"; NativeQuery query = session.createNativeQuery(sql.toString()); query.executeUpdate();