0 Replies Latest reply on Dec 27, 2007 8:50 AM by werwolfgang

    Relation configuration problem

    werwolfgang
      I have association between dms assembler
      ...
      <destination id="company">
      <adapter ref="java-adapter"/>
      <properties>
      <source>samples.crm.CompanyAssembler</source>
      <scope>application</scope>

      <metadata>
      <identity property="companyId"/>
      <one-to-many property="employees" destination="employee"/>
      </metadata>
      ...
      ...
      </properties>
      </destination>
      ...
      <destination id="employee">
      <adapter ref="java-adapter"/>
      <properties>
      <source>samples.crm.EmployeeAssembler</source>
      <scope>application</scope>

      <metadata>
      <identity property="employeeId"/>
      </metadata>

      </properties>
      </destination>
      .

      In client side i fill collection of Company object from dsCompany DataService
      I make on client side new Company and add for this company some of employees, execute
      dsCompany.createItem(company).First executes EmploeeAssembler and create collection Employee but Company
      no exist yet. How configurate assotiation for dms assembler that first cratete new company and afrer create collection of employee?