jpa error uses a non-entity [class ch.printsoft.mailhouse.usermgr.entity.Department] as target entity in the relationship attribute

前端 未结 8 720
北海茫月
北海茫月 2020-12-18 19:17

I try to persist my Department and Mandator classes to hsqhldb but it gives this error.

Exception Description: [class ch.printsoft.         


        
8条回答
  •  余生分开走
    2020-12-18 19:55

    Ensure you have both classes listed in your persistence.xml, and the both classes are on the classpath.

    Please include your persistence.xml.

提交回复
热议问题