|
|
| find SQL query created by Criteria |
Expert:Sandeep
Hi there,
I am new to hibernate and want to know if I have some code like this...
Criteria criteria = p_session.createCriteria(Rh2uTrDelegationHistoDTO.class);
if (p_lstOrderByCols != null){ Iterator iter = p_lstOrderByCols.iterator(); while (iter.hasNext()){ criteria.addOrder(Order.asc((String)iter.next())); } } List lignesDel = criteria.list();
where would I find my SQL code which is generated?
Will it be in some DAO file or it is generated on the fly ?
Thanks, Sandeep
|
| Answers |
Hi,
If you are using tomcat then look for the catalina.out file in the logs directory.
If your server different then you have to examine the log file to view the generated output.
Thanks
|
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|