I am executing the following HQL and it is executing properly
String hql = \"FROM Employee\"; Query query = session.createQuery(hql); List results = query.list(
you can get the Query out by using the unwrap method.
String queryString = query.unwrap(org.hibernate.Query.class).getQueryString();