HQL to SQL converter
问题 Does anyone know how to convert NHibernate HQL to SQL Scripts? 回答1: Since HQL translation depends on your mappings and also runtime behaviour, I think it is unlikely there is a way to do so statically. You could run the HQL against a real database and capture the generated SQL either via a profiler for your specific rdbms or NHProf. 回答2: My old trainings. That was beta-version. Here it is! (hql2sql.jsp) <SCRIPT type="text/javascript"> <% org.hibernate.Session ThisSession = SessionFactory