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

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

How you fix the following Hibernate error:

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

6条回答
  •  太阳男子
    2020-12-17 18:14

    I think it means you have declared the same entity in more than one configuration file.

    Without more information, I would try commenting out chunks of your config file so that you don't see the error, and then slowly adding sections back in until you encounter the error?

    If its only a few config files, then why not post them here? When posting, if you add 4 spaces to the front of your XML, then it will be:

    nicely formatted
    

    Hope this helps.

提交回复
热议问题