Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 628df6f9c02beea9fc6da162de4795733cb32a53 (plain) (tree)

























































                                                                                                                                                                                                              
<?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">

<hibernate-mapping auto-import="false">
	<class name="org.eclipse.emf.teneo.samples.emf.annotations.naturalId.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`PERSON`">
		<meta attribute="eclassName" inherit="false">Person</meta>
		<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/naturalid</meta>
		<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
			<meta attribute="syntheticId" inherit="false">true</meta>
			<generator class="native"/>
		</id>
		<discriminator type="string">
			<column name="`DTYPE`" index="PERSONDTYPE" length="255" not-null="true"/>
		</discriminator>
		<natural-id mutable="false">
			<property name="firstName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
				<column not-null="true" unique="false" name="`FIRSTNAME`"/>
			</property>
			<property name="lastName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
				<column not-null="true" unique="false" name="`LASTNAME`"/>
			</property>
			<many-to-one name="family" entity-name="Family" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PERSON_FAMILY" insert="true" update="true" not-null="true">
				<column not-null="true" unique="false" name="`FAMILY_FAMILY_ID`"/>
			</many-to-one>
		</natural-id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion" inherit="false">true</meta>
		</version>
		<property name="age" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int">
			<column not-null="true" unique="false" name="`AGE`"/>
		</property>
		<property name="callName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
			<column not-null="true" unique="false" name="`CALLNAME`"/>
		</property>
	</class>
	<class name="org.eclipse.emf.teneo.samples.emf.annotations.naturalId.impl.FamilyImpl" entity-name="Family" abstract="false" lazy="false" discriminator-value="Family" table="`FAMILY`">
		<meta attribute="eclassName" inherit="false">Family</meta>
		<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/naturalid</meta>
		<id name="id" type="int" unsaved-value="0">
			<column not-null="true" unique="false" name="`ID`"/>
			<generator class="native"/>
		</id>
		<discriminator type="string">
			<column name="`DTYPE`" index="FAMILYDTYPE" length="255" not-null="true"/>
		</discriminator>
		<natural-id mutable="false">
			<property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
				<column not-null="true" unique="false" name="`NAME`"/>
			</property>
		</natural-id>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion" inherit="false">true</meta>
		</version>
		<property name="age" lazy="false" insert="true" update="true" not-null="true" unique="false" type="int">
			<column not-null="true" unique="false" name="`AGE`"/>
		</property>
	</class>
</hibernate-mapping>

Back to the top