Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-10-18 05:43:07 -0400
committerEike Stepper2008-10-18 05:43:07 -0400
commitf70f0dd69566ef6ea2eb3f4429b5f6ac05797cce (patch)
tree51f35c07cdbb3fb513df9b942a236f0718d5decc
parentef93168041828aca5f0203d043adfc3c5f736b10 (diff)
downloadcdo-f70f0dd69566ef6ea2eb3f4429b5f6ac05797cce.tar.gz
cdo-f70f0dd69566ef6ea2eb3f4429b5f6ac05797cce.tar.xz
cdo-f70f0dd69566ef6ea2eb3f4429b5f6ac05797cce.zip
[249847] Store resources in a hierarchical structure
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249847
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java
index a32269ffac..7c77284e4f 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java
@@ -104,8 +104,12 @@ public class CDORevisionImpl implements InternalCDORevision
id = in.readCDOID();
version = in.readInt();
- created = in.readLong();
- revised = in.readLong();
+ if (!id.isTemporary())
+ {
+ created = in.readLong();
+ revised = in.readLong();
+ }
+
resourceID = in.readCDOID();
containerID = in.readCDOID();
containingFeatureID = in.readInt();
@@ -137,8 +141,12 @@ public class CDORevisionImpl implements InternalCDORevision
out.writeCDOClassRef(classRef);
out.writeCDOID(id);
out.writeInt(getVersion());
- out.writeLong(created);
- out.writeLong(revised);
+ if (!id.isTemporary())
+ {
+ out.writeLong(created);
+ out.writeLong(revised);
+ }
+
out.writeCDOID(resourceID);
Object newContainerID = out.getIDProvider().provideCDOID(containerID);
out.writeCDOID((CDOID)newContainerID);

Back to the top