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

前端 未结 8 709
北海茫月
北海茫月 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:54

    I hope this can help someone.

    I had the same problem. The night before, everything was ok. In NetBeans I've checked, using History, all the files involved in the error. Persistence.xml included. Nothing was changed.

    I've checked also manually. I've tryed all the solution suggested in this thread even migrate to eclipselink 2.6.4. I've removed the 2 class involved in the persistence.xml, saved it, and added again. The error was still there.

    Then, I've removed ALL the classess in the list of the Entity Classes included in the persistence.xml, and then I've included them again.

    Now it works. Magically.

    But really there were non difference in the history. Even a single character.

提交回复
热议问题