I have a non-decomposed m:n mapping set up with an inderection table and for some 
reason when I call Collection.remove( Object ) it is deleting not only the mapping in 
the inderection table, but also the object that is mapped by the inderection table.  

How do I stop this behavior?

See my configuration below:

===================================
<class-descriptor class="com.contego.arx.domain.Monitor" table="ccp_monitor">
    <field-descriptor
        name="id"
        column="id"
        jdbc-type="INTEGER"
        primarykey="true"
        autoincrement="true"/>
    <field-descriptor
        name="monitorName"
        column="monitor_name"
        jdbc-type="VARCHAR"/>
    <field-descriptor
        name="displayName"
        column="display_name"
        jdbc-type="VARCHAR"/>
    <field-descriptor
        name="description"
        column="description"
        jdbc-type="VARCHAR"/>
    <field-descriptor
        name="configurationString"
        column="configuration_string"
        jdbc-type="VARCHAR"/>
    <field-descriptor
        name="url"
        column="url"
        jdbc-type="VARCHAR"/>
</class-descriptor>

<class-descriptor class="com.contego.arx.domain.MonitorPackage" 
table="ccp_monitor_package">
    <field-descriptor
        name="id"
        column="id"
        jdbc-type="INTEGER"
        primarykey="true"
        autoincrement="true"/>
    <field-descriptor
        name="packageName"
        column="package_name"
        jdbc-type="VARCHAR"/>
    <field-descriptor
        name="description"
        column="description"
        jdbc-type="VARCHAR"/>
 <collection-descriptor
         name="monitors"
         element-class-ref="com.contego.arx.domain.Monitor"
         auto-retrieve="true"
         auto-update="false"
     auto-delete="false"
         indirection-table="ccp_monitor_package_monitor">
         <fk-pointing-to-this-class column="monitor_package_id"/>
         <fk-pointing-to-element-class column="monitor_id"/>
 </collection-descriptor>
</class-descriptor>

===================================

Reply via email to