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

Last change on this file since 5026 was 5026, checked in by Nicklas Nordborg, 14 years ago

References #1350: Update to Hibernate 3.3.2

  • 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 5026 2009-07-28 09:06:46Z nicklas $
5
6  Copyright (C) 2005 Nicklas Nordborg
7  Copyright (C) 2006 Jari Häkkinen
8  Copyright (C) 2007 Nicklas Nordborg
9
10  This file is part of BASE - BioArray Software Environment.
11  Available at http://base.thep.lu.se/
12
13  BASE is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License
15  as published by the Free Software Foundation; either version 3
16  of the License, or (at your option) any later version.
17
18  BASE is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  GNU General Public License for more details.
22
23  You should have received a copy of the GNU General Public License
24  along with BASE. If not, see <http://www.gnu.org/licenses/>.
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="true"
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.