-->
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.  [ 3 posts ] 
Author Message
 Post subject: Can Hibernate handle Unique Index?
PostPosted: Wed Jun 15, 2005 10:17 pm 
Newbie

Joined: Fri Jun 03, 2005 10:38 am
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.1.8

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using: DB2 8.0

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Hi, I'd like to achieve the following through Hibernate mapping metadata:

CREATE UNIQUE INDEX index1 ON table1 (column1);

So far I've only seen the use of "index=" in metadata to generate "create index ...", but not "create unique index...". Is it do-able in Hibernate 2.1.8? If not, does 3.0 support this?

Thanks,
Wenqi Dwyer


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 10:45 pm 
Senior
Senior

Joined: Thu May 12, 2005 11:40 pm
Posts: 125
Location: Canada
<properties>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 11:02 pm 
Newbie

Joined: Fri Jun 03, 2005 10:38 am
Posts: 3
Thanks for your reply, but could you please specify how?


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

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.