This is a limitation of OJB. Basically you need some pointer in the database to the referenced object. This is done via a foreignkey column which is provided by the productGroupId field. In the current version of OJB I think you don't need an actual field in the class anymore but can use anonymous fields (see here for details: http://db.apache.org/ojb/howto-use-anonymous-keys.html ). However you still need to specify this foreignkey in the reference.
Anonymous fields are supported by the new version of the xdoclet ojb module so I suggest you update it from the OJB CVS.


Tom



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



Reply via email to