How you fix the following Hibernate error:
What does \"Use of the same entity name twice\".
I have this error (duplicate import) recently: two entities with the same name 'MyEntity' but from different packages/modules: com.test1.MyEntity com.test2.MyEntity
I didn't use them but they were loaded by hibernate to jboss. I wasn't allowed to change entities so I had to do some workaround.
to persistance.xml. It prevented of throwing duplicate exception while deploying to jboss. But exception was thrown when my query was called.entityManager.createQuery("Select a.Name, b.name from AEntity a,
BEntity b where a.ID = b.parentID")
It's ugly but it's a workaround.