1 Reply Latest reply on Feb 15, 2007 1:10 PM by jk;l jkl;

    EntityHome

    jk;l jkl; Expert

      I'm setting up relationships between entities from EntityHome subclasses. In a bidirectional relationship I have one EntityHome injecting the value of the other entity, and that entity's EntityHome injecting the value of the first.

      This seems like it's going to work fine, except for not knowing how to outject the value of the first EntityHome's entity so that the second EntityHome can inject it.

      In the first EntityHome I have as follows:

      @Factory("firstEntity")
      public FirstEntity init() { return getInstance(); }
      
      @In
      private SecondEntity secondEntity;


      In the second EntityHome I have as follows:

      @In
      private FirstEntity firstEntity;


      It is this line that complains about not finding a "firstEntity" contextual component to inject...why? Isn't my declaring it as @Factory("firstEntity") enough? How would I outject appropriately?