Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2bbfdc284aa7fe3150e591c70bee16ea46488294 (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
<?xml version="1.0"?>
<!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.HibernateCDOPackageUnitDTO" table="cdo_package_unit" lazy="false" entity-name="CDOPackageUnit">
		<id name="nsUri"  access="property"/>

		<property name="originalType" access="field" />
		<property name="timeStamp" access="field" />

		<!-- Need to set an explicit length for derby:
		http://opensource.atlassian.com/projects/hibernate/browse/HHH-2614
		setting it to an arbitrary large value
		 -->
		<property name="EPackageBlob" access="property" type="blob" length="65500"/>

		<array name="packageInfos" cascade="all, delete-orphan" access="field">
			<key column="cdo_package_unit_id"/>
			<list-index column="idx"/>
			<one-to-many class="CDOPackageInfoImpl"/>
		</array>

	</class>

	<class name="CDOPackageInfoImpl" table="cdo_package_info" lazy="false">
		<id name="packageURI" access="property"/>
		<property name="parentURI" length="255" access="field" />
	</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" />
		</id>
		<property name="creationTime"/>
	</class>

	<class name="org.eclipse.emf.cdo.server.internal.hibernate.SystemProperty" table="cdo_system_property" lazy="false">
		<id name="name" type="string" length="255"/>
		<property name="value" type="text" length="2000"/>
	</class>
	</hibernate-mapping>

Back to the top