{"repo":"hibernate/query-validator","free":true,"listed":false,"github":"https://github.com/hibernate/query-validator","clone":"git clone https://github.com/hibernate/query-validator.git","description":"Compile time validation for HQL and JPQL queries in Java code","language":"Java","stars":82,"topics":["jpa","hibernate","java","hql","jpql","persistence","orm"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"![Hibernate logo][] Hibernate Query Validator Compile time validation for queries written in HQL, JPQL, and [Panache][]. [Panache]: https://quarkus.io/guides/hibernate-orm-panache [Hibernate logo]: http://static.jboss.org/hibernate/images/hibernate logo whitebkg 200px.png Requirements This project now requires at least JDK 11, but JDK 15 or above is preferred. Building Type ./gradlew from this project directory. This produces an artifact with the Maven coordinates org.hibernate:query-validator:2.0-SNAPSHOT in your local Maven repository. It also creates a far jar query-validator-2.0-SNAPSHOT-all.jar in the build/libs directory of this project. Usage The persistent entity classes must be annotated with the basic JPA metadata annotations like @Entity , @ManyToOne , @Embeddable , @MappedSuperclass , @ElementCollection , and @Access . You may use XML-based mappings to specify database mapping information like table and column names if that's what you prefer. But entities mapped completely in XML will not be discovered by the query validator. 1. Put query-validator-2.0-SNAPSHOT-all.jar in the compile-time classpath of your project. (Or depend on org.hibernate:query-validator:2.0-SNAPSHOT .) 2. Annotate a package or toplevel class with @CheckHQL . Usage with plain Hibernate or JPA The validator will check any static string argument of - the createQuery() , createSelectionQuery() , and createMutationQuery() methods, - the @NamedQuery() annotation, or - the @HQL annotation which occu","default_branch":null,"files":null,"tree":[],"storefront":"/r/hibernate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hibernate/query-validator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}