-->
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: Updation one of composite primary key
PostPosted: Sun Sep 24, 2006 10:45 am 
Newbie

Joined: Sun Sep 24, 2006 10:27 am
Posts: 1
Hi all ,
i am getting a problem of updation of one of composite primary key in hibernate.
The name of the table is Employee_Relation
fields userId,typecode,backupUserId (three are composite primary key)and effectiveDate.

when for update query is generated by the hibernate is like that
"update EMPLOYEE_RELATIONSHIP set effectiveDate=? where userid=? and typecode=? and backupUserId=?"
But i want to generate a query like that
"update EMPLOYEE_RELATIONSHIP set effectiveDate=? ,backupUserId=?where userid=? and typecode=? "
Plese Help me to overcome that situation....


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.