Cl�vis Wichoski wrote:

Thomas, thanks for reply,

but and about issues for querys at end of email?

here are a cut:

Now the querys that must work with this model. I don't use ODMG but I will explain in OQL because I use OQL to generate Criteria and appears to be more readable:

1) SELECT obj FROM User obj WHERE myCompany.myAddress.myCity.name = "CITY 1"

Works because the user reference points to a Person class.

2) SELECT obj FROM User obj WHERE myCompany.shortcut = "COMPANY 1" AND login = "USER 1"
Works like above.


3) SELECT obj FROM Company obj WHERE shortcut = "COMPANY 1"
Works OJB discover the shortcut field from Person and does a great job here.


3) SELECT obj FROM Company obj WHERE myAddress.myCity.name = "CITY 1"
Don't work, and throws a Database Exception Table must be in from list, because myAddress.myCity.name appears in SQL statement generated by OJB, here OJB does a bad job, because don't discover the collection of Address from Person. (I think that this can be done like for fields).
but in an email from Jakob he mentioned for me to redefine references in descriptor, doing that, works, but this redefination must be in repository_user.xml, how do it with XDoclet?

You don't have to redefine the reference, because it gets inherited (after appliying the change that I outlined in the last email).
However, I cannot tell whether the query then works as there seem to be some problems with the multiple-joined-table-mapping strategy and queries. Please try the query after the change of 'include-inherited', and if it is not still working, then please create a bug report.


Tom


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



Reply via email to