You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping package="grits.gino.domain">

	<class name="TaskImpl" table="TASK">
	
		<id name="id" type="long" unsaved-value="null">
			<column name="TASK_PK"/>
			<generator class="native">
				<param name="sequence">TASK_SEQ</param>
			</generator>
		</id>
		
		<property name="name" type="string">
			<column name="TASKNAME" length="30" unique="true" not-null="true"/>
		</property>

		<property name="datasetBasePath" type="string">
			<column name="BASEFILEPATH" length="200" not-null="false"/>
		</property>

		<property name="runLogPath" type="string">
			<column name="RUNLOGFILEPATH" length="200" not-null="true"/>
		</property>

		<many-to-one name="type">
			<column name="TASKTYPE_FK" not-null="true"/>
		</many-to-one>

		<set
			name="taskProcessSortedSet"
			inverse="true"
			cascade="all-delete-orphan"
			sort="natural"
			order-by="SEQUENCE asc">
			
			<key column="TASK_FK"/>
			<one-to-many class="TaskProcessImpl"/>
        </set>

		<set
			name="datasetSetInternal"
			inverse="true"
			cascade="all-delete-orphan">
			
			<key column="TASK_FK"/>
			<one-to-many class="DatasetImpl"/>
        </set>

	</class>

</hibernate-mapping>

  • No labels