I guess the simple answer is: nope, but I guess something like that could be created.

-David


On Mar 13, 2007, at 2:52 AM, Christopher Snow wrote:

When setting up related entities using the java services, is it the
developers responsibility to creating the relationships by using the id
field values, e.g.

delegator.create("EntityOne", UtilMisc.toMap("entityOneId", "1"));

delegator.create("EntityTwo", UtilMisc.toMap("entityTwoId", "2",
"entityOneId", "1"));

Is there a setRelated() way of doing things equivalent to getRelated ()?,
e.g.

entity1 = delegator.create("EntityOne", ...);
entity2 = delegator.create("EntityTwo", ...);
entity2.setRelated(entity1);

Many thanks,

Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to