Revision 9283
Added by Jing Tao over 9 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
477 | 477 |
|
478 | 478 |
// add the newPid to the obsoletedBy list for the existing sysmeta |
479 | 479 |
existingSysMeta.setObsoletedBy(newPid); |
480 |
|
|
480 |
//increase version |
|
481 |
BigInteger current = existingSysMeta.getSerialVersion(); |
|
482 |
//System.out.println("the current version is "+current); |
|
483 |
current = current.add(BigInteger.ONE); |
|
484 |
//System.out.println("the new current version is "+current); |
|
485 |
existingSysMeta.setSerialVersion(current); |
|
481 | 486 |
// then update the existing system metadata |
482 | 487 |
updateSystemMetadata(existingSysMeta); |
483 | 488 |
|
Also available in: Unified diff
Increase the version number after updating the existing object's system metadata in the update method.