1 Reply Latest reply on Dec 30, 2005 7:55 PM by epbernard

    Use of the same entity name twice

    gsaman

      Hi there
      Have a problem trying to implement my object model in EJB3, I have the class Generic in 3 different packages, when I try to deploy I get this error


      ObjectName: jboss.j2ee:service=EJB3,module=myEJB.ejb3
      State: FAILED
      Reason: org.hibernate.AnnotationException: Use of the same entity name twice: Generic


      Should the whole class path be the name of the class? ie. com.my.Generic, com.my.entity.Generic, etc?

      Any ideas?