hello everbody,

today I checked out the rc6 cvs version and did some validation tests on my application.
I found out, that there is something going wrong, when I delete an object.


I have an decomposed n-m relation:

CONTACT --------INSTITUTION_CONTACT ------- INSTITUTION

when I delete an INSTITUTION_CONTACT the related INSTITUTION and the CONTACT are deleted as well!!
I have put an auto-delete=false in my metadata, so I don't see a reason for that action.


here is the metadata for INSTITUTION_CONTACT :
class-descriptor
class="at.weberhofer.eusoda.shared.orm.Institution_Contact"
table="institution_contact"

<field-descriptor id="0"
  name="institutionContactId"
  column="institution_contact_id"
  jdbc-type="INTEGER"
  primarykey="true"
  autoincrement="true"
/>
<field-descriptor id="1"
  name="contactId"
  column="contact_id"
  jdbc-type="INTEGER"
/>
<field-descriptor id="2"
  name="institutionId"
  column="institution_id"
  jdbc-type="INTEGER"
/>
<field-descriptor id="3"
  name="isPublic"
  column="isPublic"
  jdbc-type="TINYINT"
/>
<field-descriptor id="4"
  name="contactPrivileges"
  column="contactPrivileges"
  jdbc-type="INTEGER"
/>
<field-descriptor id="5"
  name="sortHelp"
  column="sortHelp"
  jdbc-type="INTEGER"
/>
<field-descriptor id="6"
  name="updateTime"
  column="updateTime"
  jdbc-type="TIMESTAMP"
/>

  <reference-descriptor
   name="contact"
   auto-retrieve="true"
   auto-update="true"
   auto-delete="false"
   class-ref="at.weberhofer.eusoda.shared.orm.Contact"
>
   <foreignkey field-ref="contactId"/>
</reference-descriptor>

  <reference-descriptor
   name="institution"
   auto-retrieve="true"
   auto-update="true"
   auto-delete="false"
   class-ref="at.weberhofer.eusoda.shared.orm.Institution"
>
   <foreignkey field-ref="institutionId"/>
</reference-descriptor>


</class-descriptor>






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



Reply via email to