On Sun, 29 Feb 2004, Dirk Manske (Service Respond) wrote: > Hi Peter, > > my first repository-user.xml does not contain the extent concept at all. I > simply did not set up a class-descriptor for BaseClass - just as you > described. > > The extent concept came up to my mind when I thought that XDoclet would be a > great time saver to set up the repository. For each attribute in the model > class you declare an ojb.field, ojb.reference etc. Since the common > attributes are in BaseClass I wondered how to set them up via XDoclet for > each model class. That is why I guess U have to use the extent concept of > ojb.
Simply put the required tags (ojb.field, ojb.reference etc.) in the BaseClass. There is no need to tag the BaseClass with ojb.class, the XDoclet module will pick up any inherited persistent (tagged) features regardless of whether their class is persistent (ojb.class) or not, and add them to the current class descriptor. You can also control which features are picked up via the ojb.modify-inherited tag, which also allows you to modify them for the current class. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
