Hi Tom,

This was a little misleading for me, since I did *not* want to generate
fields (or table information) for my persistent base class, but did want
the fields to be included in each concrete class definition.

So the way I ended up mapping was to eliminate the @ojb.class markup in
the persistent base class and interface, but leave the @ojb.field markup
on the getters only in the interface.

Markup each Interface with @ojb.class generate-table-info="false" and
markup each getter in the interface.  This produces an extent definition
for the implementing class.

So in short, I have it producing exactly what I need now.

-----Original Message-----
From: Thomas Dudziak [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 15, 2004 6:09 PM
To: OJB Users List
Subject: Re: How to markup for xdoclet inheritance structure?

Gelhar, Wallace Joseph wrote:

> I am trying to use xdoclet to map an inheritance hierarchy as follows,

> but it fails to include any inherited fields.  Any ideas?

The generate-table-info="false" setting disables generation of
field/reference/collection entries. See here for details:

http://db.apache.org/ojb/docu/guides/xdoclet-module.html#ojb.class

You should also put the ojb.field tags at the getter or setter methods
in the interfaces because this will cause their definition to be
inherited in all implementing classes.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to