I came across the same problem. I do not think this is a mistake. This error occurs when adding / editing an object model, for example, a new field has been added to the entity class.
To overcome this error, you need to restore the meta-model. Clean the project and create it.
If you are using Maven, run maven clean. (assuming that the POM is configured correctly so that it regenerates the metamodel that the JPA needs).
source share