tags:

views:

65

answers:

1

I tried to execute a delete query as following in eclipse's HQL tool

delete from Address address where address.id = 6

but i got the

org.hibernate.hql.QueryExecutionRequestException: Not supported for DML operations

Please tell me that i've done wrong. Thank you.

A: 

This post suggests trying to open a session manually, and then run the delete.

Kaleb Brasee