-->
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: Multiple generated columns in one table/class
PostPosted: Tue Apr 17, 2007 6:32 pm 
Newbie

Joined: Tue Apr 17, 2007 6:17 pm
Posts: 3
I've got an Oracle 10g table that has one surrogate primary key and a couple of other columns. For the primary key, I'm using an Oracle sequence to populate the value. Easy enough.

However, I'd like to use another Oracle sequence for another (non-primary or foreign key) column in the table. While this second generated field is not used for any table joins and has no meaning within the database and application, it will have some meaning to external systems. Basically, the external systems will be using this second generated id as their identifier.

Is there a way to do this in Hibernate 3.2.3? I looked at the DTD, and the generator tag is only valid inside the id tag.

Thanks for your input.

Sean


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.