Hi Ralf,

Here are the relevant parts of my mapping:

the object I request is OAPRoject.

OAProject has a A-B-A  relation with costCenter

  <class name="nl.serac.dbengine.elements.OAProject"
         extends="nl.serac.dbengine.Persistent"
         auto-complete="false"
         identity="projectCode">
    <description>Default mapping for class
nl.serac.dbengine.elements.OAProject
      </description>
    <map-to xml="project"/>
    <field name="projectCode" type="string" required="true" direct="false"
      transient="false">
      <bind-xml name="projectCode" node="element"/>
    </field>
    <field name="name" type="string" required="true" direct="false"
      transient="false">
      <bind-xml name="name" node="element"/>
    </field>
      <field name="costCenters"
           type="nl.serac.dbengine.elements.CostCenter"
               required="true"
           collection="arraylist"
           transient="false">
      <bind-xml name="costCenter" location="costCenters" reference="false"
/>
    </field>
  </class>

  <class name="nl.serac.dbengine.elements.CostCenter"
         extends="nl.serac.dbengine.Persistent"
         auto-complete="false"
         identity="costCenterCode">
    <description>Default mapping for class
nl.serac.dbengine.elements.CostCenter
      </description>
    <map-to xml="costcenter"/>
    <field name="costCenterCode" type="string" required="true" direct=
"false"
      transient="false">
      <bind-xml name="costCenterCode" node="element"/>
    </field>
    <field name="name" type="string" required="true" direct="false"
      transient="false">
      <bind-xml name="name" node="element"/>
    </field>
      <field name="projects"
           type="nl.serac.dbengine.elements.OAProject"
           collection="arraylist"
               required="false"
           transient="false">
      <bind-xml name="project" location="projects" reference="false"/>
    </field>
      <field name="budgetHolders"
           type="nl.serac.dbengine.elements.BudgetHolder"
           collection="arraylist"
               required="false"
           transient="false">
      <bind-xml name="budgetHolder" location="budgetHolders" reference=
"false"/>
    </field>
      <field name="accounts"
           type="nl.serac.dbengine.elements.Account"
           collection="arraylist"
               required="false"
           transient="false">
      <bind-xml name="account" location="accounts" reference="false"/>
    </field>
  </class>


 <class name="nl.serac.dbengine.elements.BudgetHolder"
         extends="nl.serac.dbengine.Persistent"
         auto-complete="false"
         identity="employeeCode">
    <description>Default mapping for class
nl.serac.dbengine.elements.BudgetHolder
      </description>
    <map-to xml="budgetholder"/>
    <field name="employeeCode" type="string" required="true" direct="false"
      transient="false">
      <bind-xml name="employeeCode" node="element"/>
    </field>
    <field name="name" type="string" required="true" direct="false"
      transient="false">
      <bind-xml name="name" node="element"/>
    </field>
    <field name="emailAddress" type="string" required="false" direct=
"false"
      transient="false">
      <bind-xml name="emailAddress" node="element"/>
    </field>
    <field name="language" type="nl.serac.dbengine.elements.Language"
required="true" direct="false"
      transient="false">
      <bind-xml name="language" node="element"/>
    </field>
      <field name="costCenters"
           type="nl.serac.dbengine.elements.CostCenter"
           collection="arraylist"
               required="true"
           transient="false">
      <bind-xml name="costCenter" location="costCenters" reference="false"
/>
    </field>
      <field name="users"
           type="nl.serac.dbengine.elements.User"
               required="false"
           collection="arraylist"
           transient="false">
      <bind-xml name="user" location="users" reference="false"/>
    </field>
  </class>


Met vriendelijke groet/with kind regards,


Ad Kerremans
Technical Consultant

Serac Applications BV
Postbus 83
3454 ZH De Meern

BEZOEKADRES;
Rijnzathe 36
3454 PV De Meern

Direct: +31 (0)30 658 33 35
Algemeen: +31 (0)30 - 658 33 33
Fax: +31 (0)30 - 658 33 66
Helpdesk: +31 (0)30 - 658 33 99

Website: http://www.serac.nl




|---------+------------------------------>
|         |           Ralf Joachim       |
|         |           <[EMAIL PROTECTED]|
|         |           n-world.de>        |
|         |                              |
|         |           16-11-2006 10:10   |
|         |           Please respond to  |
|         |           user               |
|---------+------------------------------>
  
>--------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                 |
  |       To:       [email protected]                                    
                                 |
  |       cc:                                                                   
                                 |
  |       Subject:  Re: [castor-user] Endless loop                              
                                 |
  
>--------------------------------------------------------------------------------------------------------------|




Ad, could you provide us with some more details(e.g. relevant sniped of
mapping or xsd). Do your object three has circular references (e.g. A ->
B -> A)? ARe you using ID and IDREF? With the info provided we would not
be able to help you in any way.

Regards
Ralf

[EMAIL PROTECTED] schrieb:
> Hi,
>
> I managed to upgrade to castor 1.0.5, but the problem that I had with 1.0
> still exists and according to the release notes it should have been
solved
>
> I have and object (header) that has lines, these lines have a reference
to
> another object and that object has references to again another object.
> when trying to marshall the answer from castor to XML I get an endless
> loop.
> Do I have to do something more to make this work?
>
>
> Met vriendelijke groet/with kind regards,
>
>
> Ad Kerremans
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email

--

Syscon Ingenieurbüro für
Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
D-72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Email: [EMAIL PROTECTED]
Web:   www.syscon-informatics.de

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email






---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to