How to test HQL queries?
问题 I'm searching for a fast (really fast) way to test changes to hibernate queries. I have a huge application with thousands of different HQL queries (in XML files) and 100+ mapped classes and i dont want to redeploy the whole application to just test one tiny change to a query. How would a good setup look like to free me from redeployment and enable a fast query check? 回答1: With Intellij IDEA 8.1.3 the mechnism of choice is called 'Facet'. To instantly test HQL queries: create a data source