Return-Path: Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 47629 invoked from network); 15 Mar 2003 09:02:16 -0000 Received: from smtp01.web.de (HELO smtp.web.de) (217.72.192.180) by daedalus.apache.org with SMTP; 15 Mar 2003 09:02:16 -0000 Received: from dialin-145-254-087-017.arcor-ip.net ([145.254.87.17] helo=web.de) by smtp.web.de with asmtp (TLSv1:RC4-MD5:128) (WEB.DE(Exim) 4.97 #53) id 18u7Yh-0004de-00 for ojb-dev@db.apache.org; Sat, 15 Mar 2003 10:02:28 +0100 Message-ID: <3E72EC20.9060702@web.de> Date: Sat, 15 Mar 2003 10:02:24 +0100 From: Thomas Mahler Reply-To: thma@apache.org Organization: Apache Foundation User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903 X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Developers List Subject: Re: inheritance, extent and cleaner reference References: <4895C7C2076BE54AB2C2E7BCFC57B4D2583CA8@boussole> X-Enigmail-Version: 0.63.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: thma32@web.de X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Houar TINE, All three feature sound like real improvements. Especially 1. and 2. have been requested several times by users. It would be great to integrate your stuff into the codebase! Just post it to the list, we will review it! thanks for your contribution, Thomas TINE Houari (OBJECTIVA) wrote: > Hi, > > I finished ameliorations of OJB that consist of > > 1. eliminating fk from 1-1 reference between objects. > 2. implement inheritance as 1-1 reference. > 3. eliminating the obligation of declaring the attribute ojbConcreteClass in > extent class. > > The idea consists of introducing the concept of anonymous field descriptor > and anonymous persitent field. > > case1: A reference B through a 1-1 relation > class A { > int id; > B refB; > } > > class B { > int id; > String attribute; > } > > Class descriptor for A will be declared like this: > > > primarykey="true" autoincrement="true" /> > /> > > > > > > NOTICE that the name of field 2 is "". > ----------------------------------- > > Amelioration allow to handle referenced object B without having a fk in A. > > Case 2: X inherits from Y > class Y { > int id; > String AttributeY; > } > > class X extends Y { > String AttributeX; > } > > Class descriptor for X will be declared like this: > > > primarykey="true" autoincrement="true" /> > /> > > > > > > NOTICE that the name of field 2 is "" and the name of reference-descriptor > is "" > ---------------------------------------------------------------------------- > ---- > > Amelioration allow to handle base object Y as a reference-descriptor. > > > Case3: extent > > abstract class U { > int id; > } > > class V extends U { > ... > } > > class W extends U { > ... > } > > The class descriptor is not changed but the amelioration don't need an > attribute ojbConcreteClass to handle objects. > > > How it works: > I have introduced > - AnonymousFieldDescriptor, > - AnonymousPersistendField, > - AnonymousPersistendFieldForInheritance, > - AnonymousObjectReferenceDescriptor, > - AnonymousFKValue and > - AnonymousObjConcreteClassValue > > and some modifications in the class RepositoryXmlHandler. That's all. > > What do you think. > > Houar TINE > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-dev-help@db.apache.org > >