Languages
[Edit]
EN

Hibernate metamodel generator (typesafe, @StaticMetamodel, annotation processor)

4 points
Created by:
Explosssive
309

Maven pom dependency:

<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-jpamodelgen -->
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-jpamodelgen</artifactId>
    <version>5.5.2.Final</version>
    <scope>provided</scope>
</dependency>

 

What is it about?

JPA 2 defines a typesafe Criteria API which allows Criteria queries to be constructed in a strongly-typed manner, utilizing so called static metamodel classes. For developers it is important that the task of the metamodel generation can be automated. Hibernate Static Metamodel Generator is an annotation processor based on JSR_269 with the task of creating JPA 2 static metamodel classes.

source: JPA Static Metamodel Generator - jboss.org

 

TODO: Practical example with UserEntity class.

 

See also:

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join