Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-11-04 10:23:18 -0500
committerMartin Taal2012-11-04 10:23:18 -0500
commit6102005881cf96d7762e7d9d010ac4f9310d4b15 (patch)
tree40bf1b696845ba792e53b4e8cf1f071a94d373e1 /plugins/org.eclipse.emf.cdo.server.hibernate/mappings
parent7d86d8d9e0f84033380a16cd9a2acec914ae47ab (diff)
downloadcdo-6102005881cf96d7762e7d9d010ac4f9310d4b15.tar.gz
cdo-6102005881cf96d7762e7d9d010ac4f9310d4b15.tar.xz
cdo-6102005881cf96d7762e7d9d010ac4f9310d4b15.zip
Solve failing test, add CDOTextResource and CDOBinaryResource support
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.hibernate/mappings')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml b/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml
index c48a849fca..8dcb4c1802 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml
@@ -69,6 +69,21 @@
</many-to-any>
</list>
</subclass>
+ <subclass entity-name="CDOTextResource" abstract="false" lazy="false" extends="CDOResourceNode" discriminator-value="CDOTextResource">
+ <meta attribute="eclassName">CDOTextResource</meta>
+ <meta attribute="epackage">http://www.eclipse.org/emf/CDO/Eresource/4.0.0</meta>
+ <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
+ <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
+ <property name="contents" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOClobUserType"/>
+ <property name="encoding" type="string"/>
+ </subclass>
+ <subclass entity-name="CDOBinaryResource" abstract="false" lazy="false" extends="CDOResourceNode" discriminator-value="CDOBinaryResource">
+ <meta attribute="eclassName">CDOBinaryResource</meta>
+ <meta attribute="epackage">http://www.eclipse.org/emf/CDO/Eresource/4.0.0</meta>
+ <tuplizer entity-mode="pojo" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
+ <tuplizer entity-mode="dynamic-map" class="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDORevisionTuplizer"/>
+ <property name="contents" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOBlobUserType"/>
+ </subclass>
<class name="org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreLob" table="`cdo_lob`" lazy="false">
<id name="id"/>

Back to the top