You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Eli Anderson <el...@ecaent.com> on 2003/08/25 08:11:07 UTC
xdoclet and extents
Hello,
I am using the ojb xdoclet module to generate my repository file and I'm
having problems with extents. Lets say I have 3 classes A,B, & C. B
inherits from A and C from B (A -> B -> C). The xdoclet module will
generate the extents for the direct subclasses (A->B & B->C) but won't
go any deeper then that. So in this example the extent information for C
won't be in the descriptor for A.
I was wondering if anyone else has encountered this problem and if so
how did you get around it? I know you can manually specify the extents
but that's not really the best solution for me.
Also, where is the source for the xdoclet module? I looked in the
contrib zip and in CVS but couldn't find it. I'm sure I just overlooked
it.
Thanks in advance.
--
Eli Anderson
Re: xdoclet and extents
Posted by Eli Anderson <el...@ecaent.com>.
Sorry for the late reply. You are correct, it is not necessary to
include all subtypes in the mapping. When I did some testing and
examined my code closer I found a stupid mistake on my part.
Thanks for your response. BTW this module has been a great time saver
for me, it works flawlessly.
On Mon, 2003-08-25 at 04:12, Thomas Dudziak wrote:
> This is by intention as the output of the module is modelled after the
> unit tests, not the documentation (see for instance the descriptors for
> Article, AbstractCdArticle and CdArticle in repository_junit.xml) as the
> documentation is a bit unclear as to whether it is necessary to include
> all subtypes (not only direct ones).
> Does the generated repository descriptor work ? If yes then perhaps the
> OJB documentation should be made a bit clearer. If no then I will change
> the module.
>
> Tom
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
--
Eli Anderson
Re: xdoclet and extents
Posted by Thomas Dudziak <to...@first.gmd.de>.
This is by intention as the output of the module is modelled after the
unit tests, not the documentation (see for instance the descriptors for
Article, AbstractCdArticle and CdArticle in repository_junit.xml) as the
documentation is a bit unclear as to whether it is necessary to include
all subtypes (not only direct ones).
Does the generated repository descriptor work ? If yes then perhaps the
OJB documentation should be made a bit clearer. If no then I will change
the module.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org