You don't need a foreignkey field in the Person class if you use an
indirection table:

<collection-descriptor
    name="members"
    element-class-ref="Person"
    indirection-table="GROUP_PERSON"
>
    <fk-pointing-to-this-class column="GROUP_ID"/>
    <fk-pointing-to-element-class column="PERSON_ID"/>
</collection-descriptor>

The basic idea is that the 1:n relation between Group and Person can
also be seen as a m:n relation with the (implicit) constraint that a
Person is only associated with one Group.
For details see the Advanced O/R mapping tutorial at:

http://db.apache.org/ojb/tutorial3.html#Support%20for%20non-decomposed%20m:n%20mappings

Tom



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to