Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 6b7fff9e6b76d374615c14753457570ed64c578c (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<!--	Generated by Elver Store tools on Fri Sep 01 00:30:55 CEST 2006 -->
<hibernate-mapping>
	<class entity-name="TestA" abstract="false" lazy="false" table="`testa`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="code" type="java.lang.String" lazy="false" column="`code`" not-null="true"/>
		<many-to-one name="testB" entity-name="TestB" cascade="all" lazy="false" insert="true" update="true" not-null="true">
			<column not-null="true" unique="false" name="`testb_id`"/>
		</many-to-one>
	</class>
	<class entity-name="TestB" abstract="false" lazy="false" table="`testb`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="code" type="java.lang.String" lazy="false" column="`code`" not-null="true"/>
	</class>
	<class entity-name="TestC" abstract="false" lazy="false" table="`testc`">
		<id type="long" name="e_id" column="e_id">
			<generator class="native"/>
		</id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler"/>
		<property name="code" type="java.lang.String" lazy="false" column="`code`" not-null="true"/>
		<property name="myDate" type="serializable" lazy="false" column="`mydate`" not-null="true"/>
		<list name="testB" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`testb_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`testc_testb_idx`"/>
			<one-to-many entity-name="TestB"/>
		</list>
	</class>
</hibernate-mapping>

Back to the top