On Fri, 2 Apr 2004, Matthias Gottschlich wrote: > an anonymous foreign key field has one special behaviour. There is no > class member in the java class. > Because this, i couldn't declare a ojb.field for this anonymous fk-field. > The ojb.collection (or ojb.reference) can't point tho this class member > as foreign key field -because it isn't there. > So we need a declaration of the anonymous fk-field for a collection an > for a reference (for both because we could have unidirectional relations). > I don't found it in my specification for the xdoclet - module. O.k. i > don't red the while user-documentation for xdoclet..... If it is there, > sorry.
Declaring anonymous fields (and using them) is possible with the XDoclet module. You simply put an ojb.field tag in the class' javadoc comment (and here you must supply a name and the jdbc-type). Thats all there is to it. Perhaps you're using an old version of the module? If that's the case consider updating to the CVS version of the module (no need to update the rest of OJB, only the module) which you can grab from the OJB site, CVS view. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
