Hello, I'm trying to use Castor jdo with the following configuration:
 
Classes (with getters and setters):
 
      Assemble
             id (integer)
             description (String)
             components (vector)
 
      Component
             id(integer)
             description (string)
             location (string)
 
with this tables:
 
        assemble (id integer, description varchar(50)
        assemble_component (id_assemble integer, id_component)
        component (id integer, description varchar(50), location varchar (50));
 
and the following map:
 <class name="edu.uai.teleprocesamiento.automotriz.Component" depends="edu.uai.teleprocesamiento.automotriz.Assemble" identity="id">
    <description>Component</description>
    <map-to table="component" xml="component"/>
    <field name="id" type="int">
      <sql name="id" type="integer"/>
    </field>
    <field name="description" type="string">
      <sql name="description" type="varchar"/>
    </field>
    <field name="location" type="string">
      <sql name="location" type="varchar"/>
    </field>
    <field name="serialNumber" type="string">
      <sql name="serialnumber" type="varchar"/>
 !    </field>
  </class> 
  <class name="edu.uai.teleprocesamiento.automotriz.Assemble" identity="id id_component" >
    <description>Assemble</description>
    <map-to table="assemble" xml="assemble"/>
    <field name="id" type="int">
      <sql name="id" type="integer"/>
    </field>
    <field name="description" type="string">
      <sql name="description" type="varchar"/>
    </field>
    <field name="components" type="edu.uai.teleprocesamiento.automotriz.Component" collection="vector">
      <sql many-key="id_component"/>
    </field>
  </class>
 The problem is that  Castor never fills the bridge table.
 
Thanks in advance.
       


MSN 8 helps ELIMINATE E-MAIL VIRUSES. Get 2 months FREE*. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Reply via email to