FYI, in case you didn't know (this killed me at first when trying to do
my generator):
<field-name>iD</field-name> <!-- this is the PK field of the other object -->
<column-name>APPLICATION_ID</column-name> <!-- this is the FK column in this
table -->
so for tables:
APPLICATION (ID, BLAH1, BLAH2)
ASSET (ID, BLAH1, BLAH2, APPLICATION_ID)
ASSET.APPLICATION_ID --fk--> APPLICATION.ID
field-name == EJB field name for APPLICATION.ID (in Application EJB)
column-name == column in ASSET table to store APPLICATION.ID's value
Sorry that's not too clear. I don't really know how to explain that
simply.
But boy did it take me a long time to figure that out (since all of my
tables have a PK of ID (col name, and EJB field name)), and the free
docs weren't clear
-David
On Sat, 08 Dec 2001, Dmitri Colebatch wrote:
> David,
>
> helps a lot, thanks... I've actually made some pretty good progress this
> arvo, and think that what was there was never going to work... Dave - am I
> missing something? I remember discussions over what was and wasn't done,
> but cant remember.
>
> On Fri, 7 Dec 2001, David Budworth wrote:
>
> >
> > <ejb-relation>
> > <ejb-relation-name>Application-Asset</ejb-relation-name>
> > <foreign-key-mapping>
> > <ejb-relationship-role>
> >
><ejb-relationship-role-name>Application-has-Asset</ejb-relationship-role-name>
> > <foreign-key-fields />
> > </ejb-relationship-role>
> > <ejb-relationship-role>
> >
><ejb-relationship-role-name>Asset-belongsto-Application</ejb-relationship-role-name>
> > <foreign-key-fields>
> > <foreign-key-field>
> > <field-name>iD</field-name>
> > <column-name>APPLICATION_ID</column-name>
> > </foreign-key-field>
> > </foreign-key-fields>
> > </ejb-relationship-role>
> > </foreign-key-mapping>
> > </ejb-relation>
> >
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel