-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to use sequence for unique columns, not primary keys
PostPosted: Thu Oct 23, 2003 1:47 pm 
Beginner
Beginner

Joined: Thu Oct 23, 2003 1:43 pm
Posts: 23
Hi,

I would like to know how to create sequences for non-primary keys. Here is a sample:

table A{
id primary key
id1 unique_key not null
}

I can use hibernate mapping to create sequence for id(primary key) but dont know how to do the same for id1(non-primary but unique key)

Thanks for the help,
Raghu


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 23, 2003 3:25 pm 
Regular
Regular

Joined: Tue Sep 16, 2003 11:35 am
Posts: 93
Location: San Francisco, CA
I think this is a similar problem:

http://forum.hibernate.org/viewtopic.php?t=924906


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.