summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2008-04-21 17:28:24 (EDT)
committerMartin Taal2008-04-21 17:28:24 (EDT)
commitf1a4912a26088cd78e29da28a7fa9ed0299e6ed7 (patch)
tree20555ea949735a6c94132c7e8e198c8fc9e09516
parentfb2041d89323f36733787ce0b5b84371158dbd80 (diff)
downloadcdo-f1a4912a26088cd78e29da28a7fa9ed0299e6ed7.zip
cdo-f1a4912a26088cd78e29da28a7fa9ed0299e6ed7.tar.gz
cdo-f1a4912a26088cd78e29da28a7fa9ed0299e6ed7.tar.bz2
Added parentUri
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml1
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernatePackageHandler.java4
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml b/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml
index de7c491..3a8f2ea 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml
@@ -14,6 +14,7 @@
<property name="packageURI" column="uri" type="string" not-null="true" length="255" />
<property name="ecore" type="text" not-null="false" />
<property name="dynamic" type="boolean" not-null="true" />
+ <property name="parentURI" column="parentUri" type="string" length="255" />
<property name="metaIDRange"
type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDMetaRangeUserType" not-null="true">
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernatePackageHandler.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernatePackageHandler.java
index 4f6fd2e..a992033 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernatePackageHandler.java
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernatePackageHandler.java
@@ -196,8 +196,8 @@ public class HibernatePackageHandler
{
CDOPackage cdoPackage = (CDOPackage)object;
TRACER.trace("Read CDOPackage: " + cdoPackage.getName());
- result
- .add(new CDOPackageInfo(cdoPackage.getPackageURI(), cdoPackage.isDynamic(), cdoPackage.getMetaIDRange()));
+ result.add(new CDOPackageInfo(cdoPackage.getPackageURI(), cdoPackage.isDynamic(),
+ cdoPackage.getMetaIDRange(), cdoPackage.getParentURI()));
((InternalCDOPackage)cdoPackage).setPackageManager(hibernateStore.getRepository().getPackageManager());
resultPackages.add(cdoPackage);