Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 10073 invoked from network); 16 Mar 2004 15:22:18 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Mar 2004 15:22:18 -0000 Received: (qmail 65235 invoked by uid 500); 16 Mar 2004 15:22:12 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 65213 invoked by uid 500); 16 Mar 2004 15:22:11 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 65198 invoked from network); 16 Mar 2004 15:22:11 -0000 Received: from unknown (HELO mxt1wpv.provinzial-online.de) (212.93.4.61) by daedalus.apache.org with SMTP; 16 Mar 2004 15:22:11 -0000 Subject: Inheritance with anonymous access To: ojb-dev@db.apache.org X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002 Message-ID: From: "Carsten =?Windows-1252?Q?Spr=E4ner=5FExt?=" Date: Tue, 16 Mar 2004 16:22:11 +0100 X-MIMETrack: Serialize by Router on NOTES_07/WPEXT/DE(Release 5.0.11 |July 24, 2002) at 16.03.2004 16:22:12 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hallo, Problem: Having class "A" and a derived class "B" extends "A". The classes "A" ann "B" are mapped on different tables and the relation is mapped as a "super" reference from "B" to "A". A query on "A" to an instance of B loads only the data of A. So i use the ojbConcreteClass field and the data of "B" will be loaded. Now i made a query in "B" with the ojbConcreteClass field defined. Than ojb crashes. The problem is, that ojb tries to load "B" and finds a reference to "A". So ojb tries to load "A" and sees the ojbConcreteClass field which tells it to load an instance of "B". At this moment the fk- Values of the created instance of class "B" is not defined and i get an error that all fk- Values are null. any solutions? The problem gets more difficult if there is another class "C" which has references to class "A". Ojb can not load the instances of "B" while loading an instance of "C". Is it possible to map another field to the real class name an to write an own RowReaderImplementation which uses this new field to solve the problem? btw.: When will there be a final version of 1.0? i think the home page tells it will be in the next two weeks, but this statement is from about Christmas! Please make it! OJB is good enough for a 1.0 release. And we are wating for it! Thank you all for your work... carsten --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org