What is the recommended way to truncate a table using hibernate/hql?
I\'ve tried this:
Query query = session.createQuery(\"truncate table MyTable\"); qu
Preventing SQL Injection you can use:
String escapedSQL = StringEscapeUtils.escapeSql(unescapedSQL);
from Apache Commons-Lang
method StringEscapeUtils.escapeSql