0 Replies Latest reply on May 15, 2006 4:40 PM by lc muniz

    Entity referencing others jar files

    lc muniz Newbie

      I have one entity bean (Car) that has a attribute engine (a entity bean too - Engine). The Engine entity is in a file named project1.ejb3 and the Car entity is in a file named project2.ejb3.

      When I deploy the project2.ejb3, JBoss shows a error saying that the entity Car was not found.

      @Entity
      public class Car {
      ...
      @ManyToOne
      public Engine getEngine() {
      ...
      }
      ...
      }

      How I make a referece to the first entity from the second one?

      Luiz Carlos