Mindy Pereira wrote:
You specified A in the reference descriptor, not B, so I guess you want to bypass B in this mapping. For this to work, B should not be declared in the repository.xml and you need an extent-class in the class descriptor of A that points to C.I am still having no luck mapping the following relationship:
A
B extends A
C extends B
The relationships between B and A and C and B are mapping correctly. However, obj seems unaware of the relationship between C and A:
Caused by: org.apache.ojb.broker.metadata.MetadataException: Class A is not a superclass of class C
when I include:
<reference-descriptor name="super" class-ref="A" auto-update="true">
<foreignkey field-ref="mId" />
</reference-descriptor>
However, not including that line means that the fields inherited by class C from class A are not recognized when saving an object of class C.
Can anyone offer any advice? Does ojb not support this sort of relationship?
If you did not want to bypass B, then the super-reference should point to B, not to A.
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
