Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (c) 2011 Michael Ruflin, André Locher, Claudia von Bastian.
  
  This file is part of Tatool.
  
  Tatool is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as published 
  by the Free Software Foundation, either version 3 of the License, or 
  (at your option) any later version.
  
  Tatool is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Lesser General Public License for more details.
  
  You should have received a copy of the GNU Lesser General Public License
  along with Tatool. If not, see <http://www.gnu.org/licenses/>.
-->
<!DOCTYPE hibernate-mapping
    PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
    "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
    
<hibernate-mapping>
    <class name="ch.tatool.app.data.TrialImpl" table="tatool_trial" lazy="false">
    	<!-- id -->
    	<id name="id" column="id"> 
			<generator class="increment"/>
		</id>
		 
		<!-- reference to the session -->
		<many-to-one
			name="session"
			class="ch.tatool.app.data.ModuleSessionImpl"
			column="session_id"
			not-null="true"
			cascade="save-update" />

		<!-- execution index -->
		<property name="index" column="execution_index" />
		
		<!-- properties -->
		<property name="parentId" />

		<!-- unit properties -->
        <set name="entriesImpl"
			table="tatool_trial_data_set"
			cascade="all-delete-orphan"
			lazy="false"
		>
			<key column="trial_id" not-null="true" />
			<one-to-many entity-name="TrialEntry"/>
		</set>
    </class>
    
	<class name="ch.tatool.app.data.DataEntryImpl" table="tatool_trial_data" entity-name="TrialEntry">
    	<!-- id -->
    	<id name="id" column="id"> 
			<generator class="native"/>
		</id>

		<!-- properties -->
		<property name="nodeId" />
		<property name="name" />
		<property name="value" />
    </class>
</hibernate-mapping>
New to GrepCode? Check out our FAQ X