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 private FirstEntity firstEntity;
I put an @Out on the @Factory but that didn't seem to work (not that I really expected it to...)
Any ideas?