summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2009-04-23 07:42:38 (EDT)
committerStefan Winkler2009-04-23 07:42:38 (EDT)
commit60f4d6c631d094853cd05010fca5dfcc643b9410 (patch)
tree833725cab62fe8cc7b3cdd6f4d615e88711fc04a
parent6cdf8870b01cfb8226119a533b4975b8d89f3fc5 (diff)
downloadcdo-60f4d6c631d094853cd05010fca5dfcc643b9410.zip
cdo-60f4d6c631d094853cd05010fca5dfcc643b9410.tar.gz
cdo-60f4d6c631d094853cd05010fca5dfcc643b9410.tar.bz2
Fixed issue not initializing classMapping when packageUnit is read
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreAccessor.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreAccessor.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreAccessor.java
index 31f09eb..8f9002d 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreAccessor.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreAccessor.java
@@ -40,6 +40,7 @@ import org.eclipse.net4j.db.DBUtil;
import org.eclipse.net4j.util.ReflectUtil.ExcludeFromDump;
import org.eclipse.net4j.util.collection.CloseableIterator;
import org.eclipse.net4j.util.lifecycle.LifecycleUtil;
+import org.eclipse.net4j.util.om.monitor.Monitor;
import org.eclipse.net4j.util.om.monitor.OMMonitor;
import org.eclipse.net4j.util.om.monitor.ProgressDistributable;
import org.eclipse.net4j.util.om.monitor.ProgressDistributor;
@@ -476,7 +477,10 @@ public class DBStoreAccessor extends LongIDStoreAccessor implements IDBStoreAcce
public Collection<InternalCDOPackageUnit> readPackageUnits()
{
- return getStore().getMetaDataManager().readPackageUnits(getConnection());
+ Collection<InternalCDOPackageUnit> result = getStore().getMetaDataManager().readPackageUnits(getConnection());
+ getStore().getMappingStrategy().createMapping(getConnection(),
+ result.toArray(new InternalCDOPackageUnit[result.size()]), new Monitor());
+ return result;
}
public void writePackageUnits(InternalCDOPackageUnit[] packageUnits, OMMonitor monitor)