Anybody knows if it is possible to use JPA/Hibernate as a query generator if you don’t have a meta-model (but only a DB schema)?
I essentially want to programmatically generate DBMS-agnostic queries based on introspection of DB schemas, so was thinking to just generate JPQL (preferably using an AST) and using JPA to translate that to DBMS-specific SQL.