Hurricane
Hurricane

Reputation: 1544

JHipster - entity generation - dynamic filtering for the entities

I have created a new jhipster project v4.13.3.

When creating a entity e.g.:

jhipster entity Employee

And selecting Dynamic filtering for the entities with JPA Static metamodel

An EmployeeQueryService class is subsequently created.

When looking in this class at the createSpecfication method, there are entries like this:

(buildStringSpecification(criteria.getFirstName(), Employee_.firstName));

Employee_ as far as I can tell is not defined anywhere and Intellij reports "cannot resolve symbol".

Running mvn, no errors are reported and the app runs fine.

Am I missing something?

Thanks

Upvotes: 0

Views: 1037

Answers (1)

Gaël Marziou
Gaël Marziou

Reputation: 16284

As documented, JPA static metamodel is generated by an annotation processor at build time. Maven knows about it, your IDE doesn't.

Upvotes: 1

Related Questions