Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2009-07-04 18:33:35 -0400
committerMartin Taal2009-07-04 18:33:35 -0400
commit25662f974d2ba7621fd26a9ecaf8f176c1b251f1 (patch)
tree719b1afa56716d910bc4f6c190e309ec5c9f6e1e /plugins/org.eclipse.emf.cdo.server.hibernate/mappings
parent0f5070be65c07a66e109c718d06f18e7879f40bd (diff)
downloadcdo-25662f974d2ba7621fd26a9ecaf8f176c1b251f1.tar.gz
cdo-25662f974d2ba7621fd26a9ecaf8f176c1b251f1.tar.xz
cdo-25662f974d2ba7621fd26a9ecaf8f176c1b251f1.zip
Changed Mapping of resource.contents to many-to-any
Added new CDOIDAnyUserType for this Above solutions related to issue 282400 Added support for primitive type lists
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.hibernate/mappings')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/mappings/resource.hbm.xml9
1 files changed, 4 insertions, 5 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 55ecfe2266..c51c1c2e28 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
@@ -46,12 +46,11 @@
<list name="contents" lazy="true" cascade="all,delete-orphan">
<key />
<list-index />
- <element
- type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDUserType">
+ <many-to-any
+ id-type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDAnyUserType">
<column name="entityName" />
- <column name="idString" />
- <column name="idBinary" length="1000" />
- </element>
+ <column name="idvalue" />
+ </many-to-any>
</list>
</subclass>
</class>

Back to the top