Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-10-14 12:51:05 -0400
committerEike Stepper2008-10-14 12:51:05 -0400
commit820c3be825df47d47510d64230cca983d6b876fc (patch)
tree41873609548749e157ff972dff3350f1d6b57689
parent72992aa9b5e42037aa0ed7644a319b9ef0198cf7 (diff)
downloadcdo-820c3be825df47d47510d64230cca983d6b876fc.tar.gz
cdo-820c3be825df47d47510d64230cca983d6b876fc.tar.xz
cdo-820c3be825df47d47510d64230cca983d6b876fc.zip
[250809] Enhance the way stores express their capabilities
https://bugs.eclipse.org/bugs/show_bug.cgi?id=250809
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStore.java1
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java7
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStore.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStore.java
index 5b521a0066..850b48c5ae 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStore.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStore.java
@@ -68,6 +68,7 @@ public class DBStore extends LongIDStore implements IDBStore
public DBStore()
{
super(TYPE, set(ChangeFormat.REVISION), set(RevisionTemporality.AUDITING), set(RevisionParallelism.NONE));
+ setRevisionTemporality(RevisionTemporality.AUDITING);
}
public IMappingStrategy getMappingStrategy()
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
index 2ee339bd5c..dfe11e7d5e 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Repository.java
@@ -519,8 +519,11 @@ public class Repository extends Container<IRepositoryElement> implements IReposi
{
String value = getProperties().get(Props.SUPPORTING_AUDITS);
supportingAudits = value == null ? false : Boolean.valueOf(value);
- store.setRevisionTemporality(supportingAudits ? IStore.RevisionTemporality.AUDITING
- : IStore.RevisionTemporality.NONE);
+ if (value != null)
+ {
+ store.setRevisionTemporality(supportingAudits ? IStore.RevisionTemporality.AUDITING
+ : IStore.RevisionTemporality.NONE);
+ }
}
{

Back to the top