[jboss-user] [JBoss Seam] - EntityHome

lightbulb432 do-not-reply at jboss.com
Thu Feb 15 02:03:45 EST 2007

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:

  | public FirstEntity init() { return getInstance(); }
  | @In
  | private SecondEntity secondEntity;

In the second EntityHome I have as follows:

  | 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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016879#4016879

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016879

More information about the jboss-user mailing list