Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: c1b87d653ae1c123787f718bdbea4676a464f650 (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 entity-name="ComType" abstract="false" lazy="true" discriminator-value="ComType" table="`comtype`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl">
		<meta attribute="eclassName">ComType</meta>
		<meta attribute="epackage">http://www.tech.com/tech/test/UploadNewXSDTest</meta>
		<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
			<meta attribute="syntheticId">true</meta>
			<generator class="native"/>
		</id>
		<discriminator type="string">
			<column name="dtype" index="comtypedtype" length="255" not-null="true"/>
		</discriminator>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion">true</meta>
		</version>
		<list name="employees" lazy="true" cascade="all,delete-orphan">
			<key update="true" foreign-key="comtype_employees">
				<column name="`comtype_employees_e_id`" not-null="false" unique="false"/>
			</key>
			<list-index column="`comtype_employees_idx`"/>
			<one-to-many entity-name="PersonType"/>
		</list>
		<many-to-one name="location" entity-name="LocationType" lazy="proxy" cascade="all" foreign-key="comtype_location" insert="true" update="true" not-null="true" unique="true">
			<column not-null="true" unique="false" name="`locationtype_location_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`"/>
		</property>
	</class>
	<class entity-name="Department" abstract="false" lazy="true" discriminator-value="Department" table="`department`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl">
		<meta attribute="eclassName">Department</meta>
		<meta attribute="epackage">http://www.tech.com/tech/test/UploadNewXSDTest</meta>
		<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
			<meta attribute="syntheticId">true</meta>
			<generator class="native"/>
		</id>
		<discriminator type="string">
			<column name="dtype" index="departmentdtype" length="255" not-null="true"/>
		</discriminator>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion">true</meta>
		</version>
		<property name="booktype" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
			<column not-null="true" unique="false" name="`booktype`"/>
		</property>
		<property name="bookname" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
			<column not-null="true" unique="false" name="`bookname`"/>
		</property>
	</class>
	<class entity-name="LocationType" abstract="false" lazy="true" discriminator-value="LocationType" table="`locationtype`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl">
		<meta attribute="eclassName">LocationType</meta>
		<meta attribute="epackage">http://www.tech.com/tech/test/UploadNewXSDTest</meta>
		<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
			<meta attribute="syntheticId">true</meta>
			<generator class="native"/>
		</id>
		<discriminator type="string">
			<column name="dtype" index="locationtypedtype" length="255" not-null="true"/>
		</discriminator>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion">true</meta>
		</version>
		<many-to-one name="zip" entity-name="Department" lazy="proxy" cascade="all" foreign-key="locationtype_zip" insert="true" update="true" not-null="true" unique="true">
			<column not-null="true" unique="false" name="`department_zip_e_id`"/>
		</many-to-one>
		<property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`address`"/>
		</property>
	</class>
	<class entity-name="PersonType" abstract="false" lazy="true" discriminator-value="PersonType" table="`persontype`" proxy="org.eclipse.emf.ecore.impl.DynamicEObjectImpl">
		<meta attribute="eclassName">PersonType</meta>
		<meta attribute="epackage">http://www.tech.com/tech/test/UploadNewXSDTest</meta>
		<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
			<meta attribute="syntheticId">true</meta>
			<generator class="native"/>
		</id>
		<discriminator type="string">
			<column name="dtype" index="persontypedtype" length="255" not-null="true"/>
		</discriminator>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion">true</meta>
		</version>
		<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>
		<property name="age" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.math.BigInteger">
			<column not-null="false" unique="false" name="`age`"/>
		</property>
		<property name="firstName" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
			<column not-null="false" unique="false" name="`firstname`"/>
		</property>
	</class>
</hibernate-mapping>

Back to the top