且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Hibernate元模型生成器如何工作?

更新时间:2022-01-03 09:05:25

如果您的目标不包含生成的类,则需要配置maven处理器,就像您

if your target doesn't contains the generated classed you need to configure maven processor like in the documentation that you provided.

如果您的目标包含生成的类,那么您要做的就是将它们添加到您的类路径中: 如果您使用的是eclipse:

If your target contains the generated classes, then all you have to to do is to add them your classpath : if you are using eclipse:

  1. 右键单击您的项目
  2. 属性
  3. Java构建路径
  4. 添加文件夹
  5. 在target/generated-sources下选择包含已生成的MetaModel的文件夹
  1. Right click on your project
  2. Properties
  3. Java build path
  4. Add folder
  5. choose the folder under target/generated-sources that contains the generated MetaModel