You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL queries are currently using the EntityManager with string-based Java Persistence Query Language (JPQL) queries. It might be a good idea to use the CriteriaQueries in combination with metamodels.
SQL queries are currently using the EntityManager with string-based Java Persistence Query Language (JPQL) queries. It might be a good idea to use the CriteriaQueries in combination with metamodels.
The article Dynamic, typesafe queries in JPA 2.0 by IBM explains this approach in detail.
The generation of metamodels requires an additional dependency, which might not be a problem as Hibernate supports metamodel generation and the WildFly application server includes Hibernate ORM as the default JPA provider.
Alternatively metamodels could also be generated manually.
The text was updated successfully, but these errors were encountered: