> According to the tutorial 3's example of ProductGroup vs Article for 1:N
> mapping,
> 
> Article has a column Kategorie_Nr which is associated to the primary key
> column Kategorie_Nr on ProductGroup table.
> 
> The way I'd like to associate this 1:N mapping is through "NON-PK" column
> on ProductGroup.
> 
> For example, I have Parent and Child objects (and tables) as 1:N
> relationship. (single Parent has multiple Child objects)
> 
> Parent table has its PK column named as "person_id" and also unique key as
> "parent_id".
> Child table wants to be associated with Parent through "patient_id" so it
> has a column "parent_id".
> 
> The issue with OJB is it tries to associate the Child object only through
> PK-columns, though repository.xml describes
> the fk_descriptor_ids as the position of "parent_id".
> 
> Of course the column "parent_id" is unique through Parent table. so there
> are no multiple records of Parent associated with a child.
> 
> Is there any way to describe this relationship propery on repository.xml
> to prevent OJB from attemping to make an
> association only through PKs?
> 
> Thank you in advance.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

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

Reply via email to