Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2011-07-22 11:45:22 -0400
committerMartin Taal2011-07-22 11:45:22 -0400
commite5f4afe79c671a4896659a7b5147d8759d94d2e6 (patch)
treeeaa2061883d6ecf224be58c7edd00b6c8a04487a /plugins/org.eclipse.emf.cdo.server.hibernate/mappings
parent0623b8b457963b5adb8baa3a9b7d64d24fe993b3 (diff)
downloadcdo-e5f4afe79c671a4896659a7b5147d8759d94d2e6.tar.gz
cdo-e5f4afe79c671a4896659a7b5147d8759d94d2e6.tar.xz
cdo-e5f4afe79c671a4896659a7b5147d8759d94d2e6.zip
Fixes issue [352822] resource.hbm.xml: the "blob" column name for the "cdo_lob" table causes MySQL error
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.hibernate/mappings')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml22
1 files changed, 14 insertions, 8 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 5ea7f7ce8e..b69301c613 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
@@ -19,19 +19,19 @@
<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"/>
- <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSyntheticIdPropertyHandler">
+ <id type="long" name="e_id" column="`e_id`" access="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSyntheticIdPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
- <property name="e_version" column="e_version" type="java.lang.Integer" access="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSyntheticVersionPropertyHandler">
+ <property name="e_version" column="`e_version`" type="java.lang.Integer" access="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOSyntheticVersionPropertyHandler">
<meta attribute="version">true</meta>
</property>
<property name="resourceID" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDUserType">
- <column name="resource_id"/>
+ <column name="`resource_id`"/>
</property>
<property name="containerID" type="string">
- <column name="container_id" unique-key="c0"/>
+ <column name="`container_id`" unique-key="c0"/>
</property>
<many-to-one name="folder" entity-name="CDOResourceFolder" lazy="false" cascade="merge,persist,save-update,lock" foreign-key="cdoresourcenode_folder" insert="false" update="false" not-null="false">
<column not-null="false" unique="false" name="`cdoresourcenode_folder_e_id`"/>
@@ -70,11 +70,17 @@
</list>
</subclass>
- <class name="org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreLob" table="cdo_lob" lazy="false">
+ <class name="org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreLob" table="`cdo_lob`" lazy="false">
<id name="id"/>
- <property name="clob"/>
- <property name="blob"/>
- <property name="size"/>
+ <property name="clob">
+ <column name="`clob`"/>
+ </property>
+ <property name="blob">
+ <column name="`blob`"/>
+ </property>
+ <property name="size">
+ <column name="`size`"/>
+ </property>
</class>
</hibernate-mapping> \ No newline at end of file

Back to the top