hi steve,

i'm happy it solved your problem.
you can define relationships or fields in any class-descriptor, abstract or concrete. in your case you need it in the abstract because of A pointing to S. but if you would query for all B or C pointing to a D (ie. D.name) then the definition in concrete B and D are used. i admit it would be easier if ojb would support inheritence of descriptors. but that's another story.


jakob

Steve Clark wrote:
This did indeed solve the problem. In summary, repository.xml has:

    - Foreign key field defined in subclasses only
    - Relationship defined in subclasses and in superclass

And in Java the relationship accessors are defined in the superclass
only.

I didn't even know that one could put fields or relationships in the
superclass in repository.xml.  Thanks for pointing this out, Jakob!


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



Reply via email to