Hi, I wonder if anyone checked out the xdoclet module for OJB? I tried it and it seems that there's some problems with fields inherited from superclass. Basically, if a field of the superclass is marked by ojb.field tag, but the superclass itself is not marked by ojb.class, then this field will not be included in the subclass' class descriptor (when include-inherited is set to true).
Is there a new version that fixes this? I decompiled the module and did some checking. It seems that the ifHasMemberWithTag method in class OjbMemberTagsHandler cannot is failing, when a member is of type XField, it uses XDocletTagSupport.hasTag(attributes, 2) to check if this member has the required ojb tag, but this method does not work since XDocletTagSupport.getCurrentField() is null. I'm no XDoclet expert, so I have no idea what this means, but if I set the current field of XDocletTagSupport to member (the variable), then everything will work out. Of course this is a hack, hopefully someone more knowledgable will take a look at this problem and provide an official fix. Some other minor problems: 1. In file intermediate-representation.xdt, there're 3 extra </XDtClass:ifHasClassTag> tags that (I think) should be removed, otherwise they were carried over to the generated repository xml file after the above problem is fixed. 2. In the build file, the destination file name for torque schema should be project-schema.xml, if I set it to project_schema.xml as in the doc, torque will refuse to generate sql file. __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
