-->
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: Generating unique indexs with SchemaExportTask
PostPosted: Sun Oct 09, 2005 3:29 pm 
Beginner
Beginner

Joined: Sun Oct 09, 2005 3:21 pm
Posts: 40
hej,

Want to generate a unique index with the SchemaExportTask. For example, a table like:

--- Resource ---
id: long
type: String
name: String

has a primary key consisting of the ID column (taken care of by the id element in the mapping document). What would like to produce (with SchemaExportTask) is a unique index made up of "name,type" pairs. No idea how this is represented in the mapping XML. But the result would be something like:

CREATE UNIQUE INDEX index_name
ON RESOURCE (type,name)


Thanks / matthew


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.