-->
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: How to attach sequence to nonPK column
PostPosted: Thu May 06, 2004 4:10 am 
Newbie

Joined: Fri Mar 12, 2004 9:33 am
Posts: 17
I hava table with two columns ID (primary key) and NUM. Values that are inserted into NUM column are the same as for ID column (they are generated from sequence). So how can I avoid two operations (INSERT and then UPDATE) in this situation?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 06, 2004 5:28 am 
Newbie

Joined: Fri Apr 16, 2004 7:06 am
Posts: 3
I also have same query, any people could help? Thx inadvance


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 06, 2004 6:23 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
use a trigger

_________________
Emmanuel


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.