I was just wondering if there was an easy way to make the HQL Console work using pure JPA, and by that I mean without having to maintain Hibernate configuration files (hibernate.cfg.xml/*.hbm.xml)? Actually, maybe what would be needed is an "EQL Console". The thing is, even though I'm using Hibernate as my provider in my JPA project, I do not maintain any Hibernate config files since I'm only using standard JPA features. When I try to use the HQL Console with such a project, I always wind up having a "org.hibernate.hql.ast.QuerySyntaxException: <entity name here> is not mapped [select t from <entity name here> as t]". I cannot get it to automatically scan my module for all annotated entities and config files (persistence.xml/orm.xml). I access the HQL console by going through the "Java EE: Structure" project view, right-clicking on a persistence unit in my JPA facet and clicking "Open HQL Console". Funny thing is, both the JPA facet and the code completion in the HQL query editor detect all my entities. It probably is related to the way the HQL Console instantiates the EntityManager.
Here's what my persistence.xml looks like:
Here's what my orm.xml file looks like:
Thank you for any help you can provide.