Oh, darn! I accidently checked in the code which may cause trouble reading
current test DataMap. Please don't update your code until further notice
(sometime tonight).
Sorry,
Misha
----- Original Message -----
From: "Andrei Adamchik" <aadamchi..obox.com>
To: <cayenne-deve..bjectstyle.org>
Sent: Monday, February 11, 2002 12:31 PM
Subject: RE: Cayenne GUI tool
> You forgot to send it to the mailing list again ;-)
>
> I think source and target are redundant, since it is derived data. I
> totally agree that DbRelationship name won't be unique across the DataMap,
> just within the source entity. But still, here is how you would find the
> right DbRel. without source and target under "db-relationship-ref" tag:
>
> // with a couple of casts omitted here
> DbRelationship r1 =
> objRel.getSourceEntity().getDbEntity().getRelationship(name1);
> DbRelationship r2 = r1.getTargetEntity().getRelationship(name2);
> DbRelationship r3 = r2.getTargetEntity().getRelationship(name3);
> // ... etc.
>
>
> At 12:21 PM 2/11/2002 -0500, Shengaout, Michael wrote:
> >No, I meant something slightly different. The DbRelationship Name won't
be
> >unique across the DataMap. It will be unique for the DbRelationships
between
> >two specified DbEntities (e.g A and B). It is going to be needed only
when
> >you have more than one relationship between two entities, or when you
have
> >the relationship between of entity with itself, e.g.
subordinate-supervisor
> >relationship in DbEntity "Employee". Consequently, db-relationship-ref
will
> >have to have
> >a) Source
> >b) Target
> >c) Name
> >
> >All three will be mandatory, but Name will not be unique across the
DataMap.
> >
> >Misha
> >
> >
>
> Andrei
>
>
This archive was generated by hypermail 2.0.0 : Mon Feb 11 2002 - 22:22:57 EST