Apologies: this went straight to my trash for some reason I have solved this problem by removing the "super" reference to case021, which was wrong. However, case021 entends Case, which means that case094 should have access to all the fields in Case. I attempted to include the following for case094: <reference-descriptor name="super" class-ref="appian.tracking.beans.Case" auto-update="true">
<foreignkey field-ref="mId" /> </reference-descriptor> But OJB complains that: Caused by: org.apache.ojb.broker.metadata.MetadataException: Class appian.tracki ng.beans.Case is not a superclass of class appian.tracking.cases.case094.Case094 Leaving this line out means that none of the fields inherited by Case094 from Case are recognized or filled in when the object is stored. How can I define this relationship? ________________________________ From: Armin Waibel [mailto:[EMAIL PROTECTED] Sent: Wed 7/7/2004 6:44 PM To: OJB Users List Subject: Re: OJB and Inheritance Hi, did you checked your metadata files (e.g. wrong table name)? > Both beans have > separate repository_user.xml setups What do you mean? Do you mean completely separate repository.xml files or only split repository_user.xml files using "!ENTITY" include in repository.xml file? regards, Armin Mindy Pereira wrote: > I have a bean, Case094, extending another bean, Case021. Both beans have > separate repository_user.xml setups and separate tables. However, when I > store a bean of type Case094 (using broker.store) the information ends > up in the table for Case021. I am currently using OJB RC5 with plans to > upgrade to version 1. Is this a known issue in RC5 that the upgrade > could fix, or is there some other issue? > > Thanks. > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
