-->
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: Updating a field within a composite key
PostPosted: Thu May 04, 2006 2:33 am 
Beginner
Beginner

Joined: Thu Apr 20, 2006 3:44 am
Posts: 32
I have set of fields which forms a composite key of my table.....

Is it possible to update just one field of this composite key ?

I tried one sameple but didnt work .........any clue please

Sudhir


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 12:15 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
No. Keys are naturally immutable. If you change the value of a key, you're talking about a different row, which means you need a new object.

_________________
Code tags are your friend. Know them and use them.


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.