EN
Hibernate metamodel generator (typesafe, @StaticMetamodel, annotation processor)
4 points
Maven pom dependency:
xxxxxxxxxx
1
<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-jpamodelgen -->
2
<dependency>
3
<groupId>org.hibernate</groupId>
4
<artifactId>hibernate-jpamodelgen</artifactId>
5
<version>5.5.2.Final</version>
6
<scope>provided</scope>
7
</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.
TODO: Practical example with UserEntity class.
See also: