-->
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: Using an Oracle Sequence on a non primary key?
PostPosted: Mon Nov 10, 2003 11:53 am 
Newbie

Joined: Tue Nov 04, 2003 12:53 pm
Posts: 3
Location: Washington, DC
Hey guys,

I was wondering if it was possible to specify an oracle sequence on a field that is not a primary key through Hibernate.

The docs indicate that you can only use the <generator> tags on <id> fields only. In my table, I have a <comp-id> of 6 different fields and another field (which is not a part of the <comp-id>) that relies on an Oracle sequence.

Any suggestions are welcome (even data model changes), but we can't change our data model so that our field with the sequence is the only primary key.

Thanks, Dan


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 10, 2003 2:50 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Can't do that in "native hibernate"
http://forum.hibernate.org/viewtopic.php?t=925039&highlight=sequence

_________________
Emmanuel


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.