3

I'd like to get hql request from DetachedCriteria. Is there any right way of doing it(I mean toString is not right)?

user590444
  • 4,252
  • 8
  • 36
  • 43

1 Answers1

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

Community
  • 1
  • 1
Erik
  • 2,013
  • 11
  • 17