Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: d92d57c1ed8ba1ae55b83c0c764b16a41cc9942e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping auto-import="false">
	<typedef name="eresource.ResourceSet" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
		<param name="epackage">http://www.eclipse.org/emf/CDO/Eresource/4.0.0</param>
		<param name="edatatype">ResourceSet</param>
	</typedef>
	<typedef name="eresource.URI" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
		<param name="epackage">http://www.eclipse.org/emf/CDO/Eresource/4.0.0</param>
		<param name="edatatype">URI</param>
	</typedef>
	<typedef name="eresource.Diagnostic" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
		<param name="epackage">http://www.eclipse.org/emf/CDO/Eresource/4.0.0</param>
		<param name="edatatype">Diagnostic</param>
	</typedef>
	<class entity-name="CDOResourceNode" abstract="true" lazy="false" discriminator-value="CDOResourceNode" table="`cdoresourcenode`">
		<meta attribute="eclassName">CDOResourceNode</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"/>
		<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"/>
		<version name="e_version" column="`e_version`" type="java.lang.Integer" >
			<meta attribute="version">true</meta>
		</version>
		<property name="resourceID" type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDUserType">
			<column name="`resource_id`"/>
		</property>
		<property name="containerID" type="string">
			<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`"/>
		</many-to-one>
		<property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`name`" unique-key="c0"/>
		</property>
	</class>
	<subclass entity-name="CDOResourceFolder" abstract="false" lazy="false" extends="CDOResourceNode" discriminator-value="CDOResourceFolder">
		<meta attribute="eclassName">CDOResourceFolder</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"/>
		<list name="nodes" lazy="true" cascade="all">
			<key update="true">
				<column name="`cdoresourcenode_folder_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`cdoresourcefolder_nodes_idx`"/>
			<one-to-many entity-name="CDOResourceNode"/>
		</list>
	</subclass>
	<subclass entity-name="CDOResource" abstract="false" lazy="false" extends="CDOResourceNode" discriminator-value="CDOResource">
		<meta attribute="eclassName">CDOResource</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"/>
		<list name="contents" table="`cdoresourcecontents`" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="cdoresourcecontents">
				<column name="`cdoresource_e_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`cdoresourcecontents_idx`"/>
			<many-to-any id-type="org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOIDAnyUserType" meta-type="string">
				<column not-null="false" unique="false" name="`contents_type`"/>
				<column not-null="false" unique="false" name="`contents_id`"/>
			</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>
	<subclass entity-name="CDOFileResource" abstract="false" lazy="false" extends="CDOResourceNode" discriminator-value="CDOFileResource">
		<meta attribute="eclassName">CDOFileResource</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"/>
	</subclass>
		
	<class name="org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreLob" table="`cdo_lob`" lazy="false">
		<id name="id"/>
		<property name="clob">
			<column name="`c_lob`"/>
		</property>
		<property name="blob">
			<column name="`b_lob`"/>
		</property>
		<property name="size">
			<column name="`lobsize`"/>
		</property>
	</class>

</hibernate-mapping>

Back to the top