Hi Pablo.
I dont think this is possible. How can u have a 1->n relation without a
foreign key?
U must add somethink like this in repository_user.xml
Award -> AwardEvent the awrdID is the foreign key
<collection-descriptor
name="events"
element-class-ref="gr.tera.alternative.bo.AwardEventBO"
refresh="true"
auto-delete="true"
>
<inverse-foreignkey field-ref="awardID"/>
</collection-descriptor>
----- Original Message -----
From: "Pablo A. Osso" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 28, 2003 5:31 PM
Subject: Help with 1n mapping (new to OJB)
> Hello,
>
> Can anybody help me understand 1:n associations ? OJB site isn't clear
> to me.
> Here is my case:
> I have a "Group" which has a "Person" collection named "members". How
> can I resolve this without adding a foreing key to "Person" ? I don't
> want "Person" to know in what group is a member. Warning: "Person" can
> only be in one "Group".
>
> Sorry if I'm not clear. Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]