I'd like to get hql request from DetachedCriteria. Is there any right way of doing it(I mean toString is not right)?
Asked
Active
Viewed 4,547 times
1 Answers
2
It's not possible since criteria is not mapped to hql but to sql. Seeing the sql should be easy with show_sql = true.
See also SO question : StackOverflow is-there-any-easy-way-to-convert-criteria-to-hql