db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: Materialising the wrong type of object when prefetching relations hips where related class is part of extent
Date Sun, 30 Jan 2005 08:39:55 GMT
hi mark,

could you please post the relevant parts of your repository to this list.

jakob

Mark Rowell schrieb:
> Thomas Dudziak <tomdzk <at> gmail.com> writes:
> 
> 
>>Oh, missed that one.
>>Again I recommend that you use the XDoclet module (bit of a shameless
>>plug  ) - you would have gotten an error message when redefining a
>>field with a different type.
>>
>>Tom
>>
> 
> 
> 
> Tom
> 
> But CreditDefaultSwap is not a sub-class of BBGBondModel (and vice 
> versa)...they are on different branches of the inheritance hierarchy.
> 
> I did not have a problem with this when I had each instrument type in it's own 
> table. The error happens because OJB "thinks" that it has an instanceof 
> BBGBondModel when it in fact has an instanceof CreditDefaultSwap...
> 
> I suppose I can fudge it somehow.
> 
> Once again, many thanks
> 
> Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 

---------------------------------------------------------------------
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