-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: XDoclet unique-key
PostPosted: Fri Oct 20, 2006 5:32 pm 
Newbie

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.