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.
|
|