Revision 7021
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import java.io.IOException; |
27 | 27 |
import java.io.InputStream; |
28 |
import java.math.BigInteger; |
|
28 | 29 |
import java.security.NoSuchAlgorithmException; |
29 | 30 |
import java.sql.SQLException; |
30 | 31 |
import java.util.Calendar; |
... | ... | |
403 | 404 |
Date now = Calendar.getInstance().getTime(); |
404 | 405 |
sysmeta.setDateSysMetadataModified(now); |
405 | 406 |
sysmeta.setDateUploaded(now); |
407 |
|
|
408 |
// set the serial version |
|
409 |
sysmeta.setSerialVersion(BigInteger.ZERO); |
|
410 |
|
|
406 | 411 |
// call the shared impl |
407 | 412 |
return super.create(session, pid, object, sysmeta); |
408 | 413 |
} |
src/edu/ucsb/nceas/metacat/IdentifierManager.java | ||
---|---|---|
1188 | 1188 |
numberReplicas, |
1189 | 1189 |
sm.getObsoletes() == null ? null:sm.getObsoletes().getValue(), |
1190 | 1190 |
sm.getObsoletedBy() == null ? null: sm.getObsoletedBy().getValue(), |
1191 |
sm.getSerialVersion() == null ? BigInteger.ZERO: sm.getSerialVersion()
|
|
1191 |
sm.getSerialVersion() |
|
1192 | 1192 |
); |
1193 | 1193 |
|
1194 | 1194 |
String guid = sm.getIdentifier().getValue(); |
Also available in: Unified diff
actually, let's set the serialVersion during the MN.create() call so that the HZ map and the backing store have the same information immediately. Also, this is how the docs specify it.
http://mule1.dataone.org/ArchitectureDocs-current/design/SystemMetadata.html