-->
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 populate Guid value into another column of the table
PostPosted: Thu Nov 10, 2005 2:46 pm 
Beginner
Beginner

Joined: Tue Jun 21, 2005 2:21 am
Posts: 22
HI
i have a table structure like this

Retailer :

Guid
activeflag
Retailer_uid
name
lastname
..
..


here on a same transaction i need to populate Guid and Retailer_uid column with the same value .i know we are having identifier generator for guid like assigned , sequence . how can i populate retailer_uid here . this should be same as guid . i cannot use triggers because it will introduce row level locking .
what is the best alternate for this .
help appreciated


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 6:24 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
I think I'd do the mapping in the normal way, but in my java class, I would implement setRetailer_uid(Guid x) to do nothing, and getRetailer_uid() to return getGuid(). That will do it quickly and easily.


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.