Class “model.Address” is listed in the persistence.xml file but not mapped

后端 未结 9 1110
梦如初夏
梦如初夏 2020-12-24 11:59

I have created a JPA project. In that Eclipse displays the following error on the entity class.

Class \"model.Address\" is listed in the

相关标签:
9条回答
  • 2020-12-24 12:40

    I think you have the wrong JPA provider class. It has to be:

    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    

    (the one you've set doesn't seem to be a class at all, let alone a provider class)

    0 讨论(0)
  • 2020-12-24 12:42

    If eclipse is used , go to Window>Preference>Validation and uncheck Suspend all validators option .Clean the project and problem get solved.

    0 讨论(0)
  • 2020-12-24 12:49

    i got similar error and when eclipse artifacts folder ".settings" is missed . After i generate eclipse artifacts using "maven-eclipse-plugin" , the error is gone

    0 讨论(0)
提交回复
热议问题