Estou usando hibernate pra fazer uma persitencia simples de um entity bean gerado pelo netbeans pelo entity classes from database.
E ta dando esse maldito erro.
Exception in thread “main” javax.persistence.PersistenceExeption: org.hibernate.AnnotationException: Use of the same entity name twice: NomeDoBean
na linha
EntityManagerFactory emf = Persistence.createEntityManagerFactory(“SICTaPU”);
ai mais embaixo tem
Caused by: org.hibernate.DuplicateMappingExeption: dublicate importe: NomeDoBean refers to both sicta.NomeDoBean and bean.NomeDoBean (try using auto-import=“false”)