On 8/10/05, Guillaume Laforge <[EMAIL PROTECTED]> wrote: > 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.
while such a thing would be useful, I don't think that it is something that the XDoclet module should do. > 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! Right. Please add an issue for this and I'll add the check. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
