source: trunk/src/core/net/sf/basedb/core/templates/hibernate-properties-RawData.xml @ 3523

Last change on this file since 3523 was 3523, checked in by Nicklas Nordborg, 16 years ago

Fixes #583: Allow changing the array design of a raw bioasay when it has raw data

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1<?xml version="1.0"?>
2<!DOCTYPE hibernate-mapping SYSTEM "hibernate-mapping-3.0.dtd" >
3<!--
4  $Id: hibernate-properties-RawData.xml 3523 2007-06-20 12:32:41Z nicklas $
5
6  Copyright (C) Authors contributing to this file.
7
8  This file is part of BASE - BioArray Software Environment.
9  Available at http://base.thep.lu.se/
10
11  BASE is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License
13  as published by the Free Software Foundation; either version 2
14  of the License, or (at your option) any later version.
15
16  BASE is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  GNU General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place - Suite 330,
24  Boston, MA  02111-1307, USA.
25-->
26<!--
27  Template for the raw data mapping. The 'entity-name' and 'table' attributes and
28  generator sequence name element as well as additional properties are added programmatically by
29  HibernateUtil.addRawDataMappings. The extended properties are defined in
30  the configuration file 'raw-data-types.xml'.
31-->
32<hibernate-mapping>
33  <class
34    name="net.sf.basedb.core.data.RawData"
35    entity-name="SET BY CORE API: HibernateUtil.addRawDataMappings"
36    table="SET BY CORE API: HibernateUtil.addRawDataMappings"
37    dynamic-update="false"
38    dynamic-insert="false"
39    lazy="false"
40    >
41    <id
42      name="id"
43      column="`id`"
44      type="int"
45      unsaved-value="0"
46      >
47      <generator class="native" >
48        <!-- param name="sequence">SET BY CORE API: HibernateUtil.addRawDataMappings</param -->
49      </generator>
50    </id>
51    <version
52      name="version"
53      type="int"
54      column="`version`"
55    />
56    <many-to-one
57      name="rawBioAssay"
58      class="net.sf.basedb.core.data.RawBioAssayData"
59      cascade="none"
60      fetch="select"
61      update="false"
62      insert="true"
63      column="`rawbioassay_id`"
64      not-null="true"
65      lazy="proxy"
66    />
67    <many-to-one
68      name="feature"
69      class="net.sf.basedb.core.data.FeatureData"
70      cascade="evict"
71      fetch="select"
72      update="true"
73      insert="true"
74      column="`feature_id`"
75      not-null="false"
76      lazy="proxy"
77    />
78    <many-to-one
79      name="reporter"
80      class="net.sf.basedb.core.data.ReporterData"
81      cascade="evict"
82      fetch="select"
83      update="false"
84      insert="true"
85      column="`reporter_id`"
86      not-null="false"
87      lazy="proxy"
88    />
89    <property
90      name="position"
91      type="int"
92      update="false"
93      insert="true"
94      column="`position`"
95      not-null="true"
96    />
97    <property
98      name="x"
99      type="float"
100      update="false"
101      insert="true"
102      column="`x`"
103      not-null="false"
104    />
105    <property
106      name="y"
107      type="float"
108      update="false"
109      insert="true"
110      column="`y`"
111      not-null="false"
112    />
113    <property
114      name="block"
115      type="int"
116      update="false"
117      insert="true"
118      column="`block`"
119      not-null="false"
120    />
121    <property
122      name="metaGridX"
123      type="int"
124      update="false"
125      insert="true"
126      column="`metagrid_x`"
127      not-null="false"
128    />
129    <property
130      name="metaGridY"
131      type="int"
132      update="false"
133      insert="true"
134      column="`metagrid_y`"
135      not-null="false"
136    />
137    <property
138      name="row"
139      type="int"
140      update="false"
141      insert="true"
142      column="`row`"
143      not-null="false"
144    />
145    <property
146      name="column"
147      type="int"
148      update="false"
149      insert="true"
150      column="`column`"
151      not-null="false"
152    />
153  </class>
154</hibernate-mapping>
Note: See TracBrowser for help on using the repository browser.