Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 06e5c84769d1a30eba6550af955371788e3ae2b2 (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">
	<typedef name="listunion.SixStatesList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
		<param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/listunion</param>
		<param name="edatatype">SixStatesList</param>
	</typedef>
	<typedef name="listunion.StateList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
		<param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/listunion</param>
		<param name="edatatype">StateList</param>
	</typedef>
	<typedef name="listunion.StringList" class="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
		<param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/listunion</param>
		<param name="edatatype">StringList</param>
	</typedef>
	<class name="org.eclipse.emf.teneo.samples.emf.schemaconstructs.listunion.impl.statesByCountryImpl" entity-name="statesByCountry" abstract="false" lazy="false" table="`statesbycountry`">
		<meta attribute="eclassName">statesByCountry</meta>
		<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/listunion</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>
		<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
			<meta attribute="syntheticVersion">true</meta>
		</version>
		<property name="country" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
			<column not-null="true" unique="false" name="`country`"/>
		</property>
		<property name="allStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="listunion.StateList">
			<column not-null="true" unique="false" name="`allstates`"/>
		</property>
		<property name="sixImportantStates" lazy="false" insert="true" update="true" not-null="true" unique="false" type="listunion.SixStatesList">
			<column not-null="false" unique="false" name="`siximportantstates`"/>
		</property>
		<property name="zipUnion" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
			<column not-null="true" unique="false" name="`zipunion`"/>
		</property>
		<list name="zipUnions" table="`statesbycountry_zipunions`" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`statesbycountry_zipunions_e_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`statesbycountry_zipunions_idx`"/>
			<element type="java.lang.String"/>
		</list>
		<property name="simpleUnion" lazy="false" insert="true" update="true" not-null="true" unique="false">
			<column not-null="true" unique="false" name="`simpleunion`"/>
			<type name="org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType">
				<param name="edatatype">SimpleUnionType</param>
				<param name="epackage">http://www.eclipse.org/emf/teneo/samples/emf/schemaconstructs/listunion</param>
			</type>
		</property>
		<list name="simpleUnions" table="`statesbycountry_simpleunions`" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`statesbycountry_simpleunions_e_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`statesbycountry_simpleunions_idx`"/>
			<element type="java.math.BigInteger,java.lang.String"/>
		</list>
		<property name="simpleStringUnion" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
			<column not-null="true" unique="false" name="`simplestringunion`"/>
		</property>
		<list name="simpleStringUnions" table="`statesbycountry_simplestringunions`" lazy="true" cascade="all,delete-orphan">
			<key update="true">
				<column name="`statesbycountry_simplestringunions_e_id`" not-null="true" unique="false"/>
			</key>
			<list-index column="`statesbycountry_simplestringunions_idx`"/>
			<element type="java.lang.String"/>
		</list>
	</class>
</hibernate-mapping>

Back to the top