Clóvis Wichoski wrote:

Hi,

I having a trouble with XDoclet to determine use of Multiple Joined Tables, If I had a reference in superclass the anonymous field for this reference is replicated, in generated subclass descriptor.
For example, if I attempt to query any Motorcycle, I get a Unknown column name: MY_MANUFACTURER from Database, because the anonymous field
is replicated on Motorcycle descriptor, if include in Motorcycle class:


* @ojb.modify-inherited ignore="true" name="myManufacturer"

The reference declaration goes out from motorcycle descriptor, but anonymous field no, then if include:

* @ojb.modify-inherited ignore="true" name="myManufacturerOid"

I get the follow exception when generating descriptors with ant:

[ojbdoclet] SEVERE: The reference myManufacturer in the class Motorcycle uses the field myManufacturerOid as foreignkey although this field is ignored in this class

But I need to maintain reference if I need to Query all Motorcycle from a specific Manufacturer.

I can do this work, only, removing generated anonymous field from descriptor, but this invalidadtes use of XDoclet, then how I can do
this mapping using XDoclet without manually changing generated mapping?

I'll look into this. Could you post a version of the repository_user.xml (and if necessary project-schema.xml) modified by you that does what you want, so I can see the differences ?


Tom


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



Reply via email to