Hi
Class A contains a pointer to class B and a Vector with elements of class B:
/**
* @ojb.class
* @ojb.field
* name="_id"
* primarykey="true"
* autoincrement="true"
* jdbc-type="INTEGER"
* @ojb.field
* name="_bId"
* jdbc-type="INTEGER"
*/
public class A
/**
* @ojb.reference
* foreignkey="_bId"
* auto-delete="true"
*/
B bObj;
/**
* @ojb.collection
* element-class-ref="B"
* foreignkey="_aId"
* auto-delete="true"
*/
Vector bObjs;
/**
* @ojb.class
* @ojb.field
* name="_id"
* primarykey="true"
* autoincrement="true"
* jdbc-type="INTEGER"
* @ojb.field
* name="_aId"
* jdbc-type="INTEGER"
*/
public class B
Torque creates a referential integrity for the bOjb. (Not for the
collection).
When I try to delete an object of type A, OJB first deletes all members of
the collection, which throws an exception, since the referential integrity
is broken.
Is there any workaround?
Thanx for any help
-- Pat
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]