Hi Tom!

> If you add a JIRA feature request for the XDoclet module with some
> sample code/mapping, I enhance the module so that it produces a
> warning for such cases.

Hmmm, in fact, AFAIK, the XDoclet module won't connect to the database
to check that the schema corresponds to the generated repository-user.
So I'm not sure you can enhance the module in such a way that it
notices a many-to-many relationship is a one-to-many or vice-versa.

But for my specific case, that may be handy to check that foreignkey
and remote-foreignkey don't point at the same column :-)

In my xdoclet tag, I had both foreignkey="xxx" and
remote-foreignkey="xxx" (damn cut'n paste I guess).

So that would be great if you could just add this little check that
verifies that you can't have those two attributes pointing at the same
column!

-- 
Guillaume Laforge
http://glaforge.free.fr/blog/groovy

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

Reply via email to