当前位置: 代码迷 >> 综合 >> JPA 生成实体类报错 is managed, but is not listed in the persistence.xml file 解决方法
  详细解决方案

JPA 生成实体类报错 is managed, but is not listed in the persistence.xml file 解决方法

热度:34   发布时间:2024-02-11 13:16:13.0

Class "com.taiji.apps.demo.domain.Sample.java"  is managed, but is not listed in the persistence.xml file,

解决方法为右键工程->properties->点击JPA->点击"Discover annotated classes automatically"前面的按钮,点击ok,问题解决

 

 

  相关解决方案