summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-02-09 14:27:15 (EST)
committerEike Stepper2008-02-09 14:27:15 (EST)
commit71f5ff0fe04559324da8e7017583766ae3748c1a (patch)
tree5dbeec938c00d825c37589ff4729e55b423934d7
parentb68105714d98f4fff318071fb003251eea68f80f (diff)
downloadcdo-71f5ff0fe04559324da8e7017583766ae3748c1a.zip
cdo-71f5ff0fe04559324da8e7017583766ae3748c1a.tar.gz
cdo-71f5ff0fe04559324da8e7017583766ae3748c1a.tar.bz2
[217117] Develop a HibernateStore
https://bugs.eclipse.org/bugs/show_bug.cgi?id=217117
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RevisionManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RevisionManager.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RevisionManager.java
index f4d8cdb..e61a8cc 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RevisionManager.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/RevisionManager.java
@@ -70,6 +70,18 @@ public class RevisionManager extends CDORevisionResolverImpl implements IRevisio
}
@Override
+ public boolean addRevision(InternalCDORevision revision)
+ {
+ if (revision.isResource())
+ {
+ String path = (String)revision.get(cdoPathFeature, 0);
+ repository.getResourceManager().registerResource(revision.getID(), path);
+ }
+
+ return super.addRevision(revision);
+ }
+
+ @Override
protected InternalCDORevision verifyRevision(InternalCDORevision revision, int referenceChunk)
{
IStoreReader storeReader = null;