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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.