-->
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: Can we assign generated value to more than one column?
PostPosted: Tue Aug 18, 2009 11:49 pm 
Newbie

Joined: Sun Jan 11, 2009 12:43 pm
Posts: 3
Hi All,

I have the below mapping to generate a value for the primary key in my table.

<id name="activityNo" type="long">
<column name="ACTIVITY_NO" precision="8" scale="0" />
<generator class="sequence">
<param name ="sequence">SEQ_ACTIVITY_TABLE</param>
</generator>
</id>

We added a new column ACTIVITY_ORDER to the table recently. Is there any way I can populate the ACTIVITY_ORDER with same value as ACTIVITY_NO through hibernate mapping?

Any help is appreciated.

Thanks,
Yaragalla


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.