Hope this helps,  I am assuming that the problem is the Repository.xml
file


< Class def agreement>
1:M

  <collection-descriptor
    name="roles"
    element-class-ref="sd.specAct.Role"
    >
    <inverse-foreignkey field-ref="contextID"/>   <- points to Agreement
ID
    <query-customizer
  </collection-descriptor>



N:M With Intersection Table

  <collection-descriptor
    name="composites"
    element-class-ref="sd.prodAgr.Agreement"
    auto-retrieve="true"
    auto-update="true"
    indirection-table="agreement_rel"
    >
      <fk-pointing-to-this-class column="componentID"/>
      <fk-pointing-to-element-class column="compositeID"/>
  </collection-descriptor>

-----Original Message-----
From: Timofey Korolev [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 30, 2003 7:58 AM
To: OJB Users List
Subject: 1:n mapping


Hello!
Does anyone has any simple example of 1:n mapping that really works? I'm
struggling  with this mapping for 3 days and nothing works except 1:1
mapping. 


-- 
Regards,
CEO Linux-Online.Ru
Korolyov Timofey

www.linuxshop.ru :: www.prefnews.ru :: www.dotstyle.ru

JabberID: [EMAIL PROTECTED]



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

Reply via email to