Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2009-07-06 07:48:45 -0400
committerMartin Taal2009-07-06 07:48:45 -0400
commitaf4c09f0e5893535eaf8cc36895dbfe032d6a247 (patch)
tree3aee97f85ff5aa68569b2cf48aa11584008eb084 /plugins/org.eclipse.emf.cdo.server.hibernate/mappings
parent838f955a34001c24808c1fded2f9830e2faeacd0 (diff)
downloadcdo-af4c09f0e5893535eaf8cc36895dbfe032d6a247.tar.gz
cdo-af4c09f0e5893535eaf8cc36895dbfe032d6a247.tar.xz
cdo-af4c09f0e5893535eaf8cc36895dbfe032d6a247.zip
Changed the persisting of CDOPackageUnits and mapping to hibernate
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.hibernate/mappings')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/mappings/meta.hbm.xml14
1 files changed, 4 insertions, 10 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 eea45e5cab..20abd9499e 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
@@ -2,15 +2,16 @@
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="org.eclipse.emf.cdo.internal.common.model">
- <class name="org.eclipse.emf.cdo.server.internal.hibernate.HibernateCDOPackageUnit" table="cdo_package_unit" lazy="false" entity-name="CDOPackageUnit">
+ <class name="org.eclipse.emf.cdo.server.internal.hibernate.HibernateCDOPackageUnitDTO" table="cdo_package_unit" lazy="false" entity-name="CDOPackageUnit">
<id name="nsUri" access="property"/>
- <property name="type" access="field" />
<property name="originalType" access="field" />
<property name="timeStamp" access="field" />
- <array name="packageInfos" cascade="all, delete-orphan" access="field" inverse="true">
+ <property name="EPackageBlob" access="property" length="40000"/>
+
+ <array name="packageInfos" cascade="all, delete-orphan" access="field">
<key column="cdo_package_unit_id"/>
<list-index column="idx"/>
<one-to-many class="CDOPackageInfoImpl"/>
@@ -22,8 +23,6 @@
<id name="packageURI" access="property"/>
- <many-to-one name="packageUnit" entity-name="CDOPackageUnit" not-null="true" column="cdo_package_unit_id" access="field"/>
-
<property name="parentURI" length="255" access="field" />
<property name="metaIDRange" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDMetaRangeUserType"
not-null="true" access="field">
@@ -32,11 +31,6 @@
</property>
</class>
- <class name="org.eclipse.emf.cdo.server.internal.hibernate.HibernateEPackage" table="cdo_hibernate_epackage" lazy="false">
- <id name="nsUri" access="property"/>
- <property name="EPackageBlob" access="property" length="10000"/>
- </class>
-
<class name="org.eclipse.emf.cdo.server.internal.hibernate.SystemInformation" table="cdo_system_information" lazy="false">
<id column="id" type="int">
<generator class="native" />

Back to the top