> > --- Bjørn T Johansen <[EMAIL PROTECTED]> wrote: > > > > > If I include unique=true in a hibernate.many-to-one > > > tag, I get two unique=true lines in the hbm file, > > > which is > > > not what I want.. > > > But I also see in the doc to xdoclet, that they > > > define two unique=true, for some reasons? > > > > > > unique bool If the column is unique > > > Default value(s): > > > false > > > > > > and > > > > > > unique text Enable the DDL generation of a unique > > > constraint for the foreign-key column. > > > Valid options are: > > > true > > > false > > > > > > > > > How do I use only the bool variant of unique? > > > > Maybe XD2 hibernate plugin would be an option for you? > > > > regards, > > > > > > ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- > > Still using XDoclet 1.x? XDoclet 2 is released and of production quality. > > check it out: http://xdoclet.codehaus.org > > > > > In other words, this is not possible in Xdoclet? >
It is possible but you will need to: 1. Open JIRA issue (since this is a bug) for it. This is optional but a desirable step. 2. Meanwhile, create a hiberante-properties.xml file and sutff that many-to-one rlation in there so it can be merged, rather than generated. And of course you will need to mainatain it manually for a while. To merge properties, read comments in your successfully generated files to see exactly the name of the file to create in merge dir (just make sure that you understand how merge works). Maybe XD2 is a wonderful piece of software but the amount of time you waste (or at least I wasted about a year ago) on configuring it and chacing all the dependencies was not worth it for me. -- Alex. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user