| Joined: Fri Oct 20, 2006 5:22 pm
 Posts: 3
 Location: Newton, NJ
 | 
				
					| Need to find sample XDoclet statements to generate multi-element unique-key. I believe I understand that a Hibernate <property> element needs to have a <column> sub-element which then contains a "unique-key" attribute. But I cannot find any example of how to generate such a sequence with XDoclet. "@hibernate.property" of course does not allow "unique-key". "@hibernate.column" does allow "unique-key", but I cannot find how to make column a sub-element of property.
 It is also not clear how to specify the unique-key. In a conventional SQL "create table" statement, the "unique key" statement would be a table wide statement, not a per element statement. But "unique-key" in XDoclet and Hibernate appears to be element related. Doesn't make sense.
 
 A sample single ID, three element XDoclet table with say two of the three elements composing a unique key would be most helpful. Can't find any such sample on the web.
 
 Thanks.
 
 
 |  |