@hibernate.many-to-one and unique?

Bjørn T Johansen <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Organization Havleik Consulting
Message-ID <20060222161458.02f26eb6@foxhound>
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?


Regards,

BTJ


-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

[email protected]
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.