With Intellij IDEA 8.1.3 the mechnism of choice is called 'Facet'. To instantly test HQL queries:
- create a data source Tools -> Data Source, Add Data Source, define driver, username and password of yor development db
- in case you dont have already a hibernate.cfg or you configure your session factory in a different way than via xml: create a hibernate.cfg file referencing all XML mapping's (define a name for the session factory, just for easier handling)
- in 'Project Structure' add Facet to your module of choice and assign the recently defined data source to the new facet
- switch to Java EE View
- Open Hibernate Facets - Node
- Right click Session factory and choose "Open HQL Console"
- enter HQL query in console
...and your're done.
sorry for this RTFM question.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…