Unable to locate static metamodel field

It seems to be bug in Hibernate itself. It is described here: https://hibernate.atlassian.net/browse/HHH-8712


I stumbled across the same issue. I don't think it is a bug. This error occurs when you add/edit your entity model, for example a new field was added in the entity class.

To overcome this error, you have to regenerate the meta model. Clean your project and build it again.

If using Maven, run mvn clean (provided that your POM is configured correctly so that it regenerate the meta model which the JPA needs).