How to use Hibernate Criteria API without Entity classes?
criteria-api, hibernate, hibernate-criteria, java
Solution
No, you can't. The point of HQL and Criteria API is to query an object model, based on entities and associations between them.
Problem
I want to exploit the db independent HQL and Type safety of Criteria API. But I don't have entity classes. Can I use Criteria API directly?