Could not find static metamodel field

What does this error mean?

07:48:42,807 ERROR [org.hibernate.jpa.internal.metamodel.MetadataContext] (ServerService Thread Pool -- 25) HHH015011: Unable to locate static metamodel field : com.lm.model.UserId_#id 

Here is how this field is defined

 @Embeddable public class UserId implements Identifier<UserId> { @Column( name = "user_id", columnDefinition = "uuid" ) protected UUID id; 
+6
source share
2 answers

This seems to be a bug in sleep mode itself. Described here: https://hibernate.atlassian.net/browse/HHH-8712

+7
source

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).

+16
source

All Articles