-->
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: Alter NAtural Key Value Gets -532 Error
PostPosted: Wed Dec 08, 2010 5:35 pm 
Newbie

Joined: Wed Dec 08, 2010 5:24 pm
Posts: 1
I have a system using Hibernate and natural Key Annotations. It is a legacy DB2 database so we needed to use several columns as a natural key. The value in one of the natural key columns changes which gets us a -532 SQL error. Hibernate does not know what to do because we are trying to update a row where the value changing is part of the natural key.

What I need to know how do we use hibernate and natural keys to update the row thusly altering the natural key.

Our limitations:
This is a COBOL to Java conversion. We want to avoid re-coding the logic at this point in our conversion. So, what I am looking for is the approach with minimal coding changes.


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.