-->
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 update one of the field in composite key
PostPosted: Fri Nov 28, 2008 8:36 am 
Newbie

Joined: Fri Nov 28, 2008 6:42 am
Posts: 1
Hi,

I have two fields mapped as a Composite key and my requirement is that user can update those fileds also.

Currently in this case, i am deleting this record and inserting a new one, but in this way my front end part holding the old reference only so next time when i am trying to update the same record with out refreshing the whole page i am getting error.

I just wanted to know is there any way in Hibernate to update the composite keys (without deleting / inserting approach)

Thanks in advance.


Top
 Profile  
 
 Post subject: How to update the Composite key
PostPosted: Sat Nov 29, 2008 8:22 am 
Newbie

Joined: Wed Feb 20, 2008 2:14 am
Posts: 4
Location: India
Hi,

There is no other way other than Insert / delete approach.

_________________
Romender


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.