Advantage of using JPAMetaModelEntityProcessor?
1 answer
In short, having the metamodel of your entities available at compile time can reduce runtime errors .
In particular, with the help of the metamodel, you can (the list is far from exhaustive)
- ensure a wider range of queries are syntactically correct at compile time (compared to pure JPQL queries)
- create dynamic, safe queries like
- (using for example Spring JPA data> = 1.5), when using, for example, specifying the sort order, since you cannot enter any typos as is the case with strings
+1
source to share