Hibernate Statistics JSP Reloaded

Some time ago I posted a JSP-Page for displaying Hibernate-Statistics within an application. Meanwhile I also posted some Code to translate HQL queries to SQL. Now I merged both together to a new version of the Hibernate Statistics page that also displays SQL statements, and it’s still not a code-beauty 😉
„Hibernate Statistics JSP Reloaded“ Weiter lesen

Hibernate HQL to SQL Translation

For debugging purposes using hibernate it’s often usefull to have the generated SQL query to an appropriate HQL query.
But setting the hibernate configuration hibernate.show_sql to true leads to logging any query made within an application (which can be a lot in some applications). With the following class the hibernate API is used to generate the correct SQL query from a given HQL query and can be used anywhere to log the generated query.
„Hibernate HQL to SQL Translation“ Weiter lesen