Still get same error when trying this. I have looked over the example. The example for multiple classes to multiple tables does not work as written. B should not have autoincrement and it should have auto-update="true" for the reference to A. Other than that it works fine for two classes, I tried what you suggested and it still breaks.
I think when the broker sets the FK references in C when I store it. It sets the refernce for B, which will be null since B does not have autoincrement. Then i get this error because the pk is null. If it also set the FK references for B, then the PK in A would get set with autoincrement resulting in the B and C getting set.
-chris worley
The extent-class tag specifies the persistent subclasses of a class. So if you have class A, class B as a subclass of A, and class C as a subclass of B, then you would write:
<class-descriptor class="A"> <extent-class class-ref="B"/> </class-descriptor>
<class-descriptor class="B"> <extent-class class-ref="C"/> </class-descriptor>
<class-descriptor class="C"> </class-descriptor>
Note that this other way around from how you specify it in Java (class C extends B, class B extends A). For details see the tutorial at http://db.apache.org/ojb/tutorial3.html#extents%20and%20polymorphism.
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
