db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahler Thomas <thomas.mah...@itellium.com>
Subject RE: Mapping One Class One Table Second Edition
Date Wed, 18 Jun 2003 14:42:05 GMT
Hi Carsten,

> -----Original Message-----
> From: "Spräner, Carsten" [mailto:Carsten.Spraener@viadee.de]
> Sent: Wednesday, June 18, 2003 3:32 PM
> To: ojb-dev@db.apache.org
> Subject: Mapping One Class One Table Second Edition
> 
> 
> Hey all,
> 
> finaly we got it working (nearly)! Just one peace is missing. 

"Peace" is missing everywhere in this dreadful world :-(

> We have the following situation. Logically we have to Classes
> 
>  A  
> 
>  B derived from A
> 
> Physically we use a generator where every class is derived 
> from a generated class. Thus we have the situation:
> 
>  AGenerated
> 
>  AImpl derived from AGenerated
> 
>  BGenerated derived from AImpl
> 
>  BImpl derived from BGenereated
> 
> The generator only mapps the Class AImpl and BImpl to the 
> tables TAB_A and TAB_B. 
> When OJB 1.0RC3 starts it says that BImpl is not a subclass 
> of AImpl and gives an error. Looking to the code it retrieves 
> the direct superclass of BImpl and finds BGenerated. Is this 
> correct or should'nt it be: 
> 
> Is AImpl assignable from BImpl?

I agree, this looks like a bug...

> 
> Which works in our case at least for the reading of the 
> repository.xml.
> 
>                      IMPL<------------IMPL 
> Is this structure of Impl<-Generated<-Impl<-Generated 
> possible at all in OJB or MUST the subclass be derived 
> directly from the superclass?
It should be possible. If not it's a bug.

cheers,
Thomas

> 
> Thank you for any answer and of course for developing OJB.
> 
> carsten
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 


Mime
View raw message