1. dependence introduction
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
</dependency>
2.idea settings
Annotation processors provided in the idea, as shown below
after setting, rebuild the project, generated in the entity object metamodel corresponding directory, similar User_