Fix for Hibernate error “Use of the same entity name twice”

前端 未结 6 908
灰色年华
灰色年华 2020-12-17 17:29

How you fix the following Hibernate error:

What does \"Use of the same entity name twice\".

6条回答
  •  -上瘾入骨i
    2020-12-17 17:57

    Another common mistake, is that you recently moved one of your persistence classes (from one package to another), but your IDE failed to clean up your .class files properly.

    Or some .class files are still hanging around in your Application Server.

提交回复
热议问题