source: trunk/config/dist/hibernate.cfg.xml @ 4508

Last change on this file since 4508 was 4508, checked in by Jari Häkkinen, 13 years ago

Addresses #1106. Missed to change reference wherefrom retrive GPLv3 license text. And some other changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 5.6 KB
Line 
1<?xml version="1.0" ?>
2<!DOCTYPE hibernate-configuration PUBLIC
3  "-//Hibernate/Hibernate Configuration DTD//EN"
4  "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
5<!--
6  $Id: hibernate.cfg.xml 4508 2008-09-11 20:00:35Z jari $
7
8  Copyright (C) 2006 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  See http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html
27-->
28<hibernate-configuration>
29  <session-factory>
30 
31    <!-- JDBC/SQL options -->
32    <property name="jdbc.batch_size">0</property>
33    <property name="show_sql">false</property>
34    <property name="connection.release_mode">after_transaction</property>
35 
36    <!-- HQL parser options -->
37    <property name="query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</property>
38 
39    <!-- Connection pool options -->
40    <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
41    <property name="c3p0.min_size">1</property>
42    <property name="c3p0.max_size">20</property>
43    <property name="c3p0.timeout">3600</property>
44   
45    <!-- Second-level cache options -->
46    <property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
47    <property name="cache.use_query_cache">true</property>
48    <class-cache
49      class="net.sf.basedb.core.data.AnnotationTypeData"
50      usage="nonstrict-read-write"
51    />
52    <class-cache
53      class="net.sf.basedb.core.data.AnnotationTypeCategoryData"
54      usage="nonstrict-read-write"
55    />
56    <class-cache
57      class="net.sf.basedb.core.data.BioMaterialData"
58      usage="nonstrict-read-write"
59    />
60    <class-cache
61      class="net.sf.basedb.core.data.DataFileTypeData"
62      usage="nonstrict-read-write"
63    />
64    <class-cache
65      class="net.sf.basedb.core.data.DirectoryData"
66      usage="nonstrict-read-write"
67    />
68    <class-cache
69      class="net.sf.basedb.core.data.ExperimentData"
70      usage="nonstrict-read-write"
71    />
72    <class-cache
73      class="net.sf.basedb.core.data.FileTypeData"
74      usage="nonstrict-read-write"
75    />
76    <class-cache
77      class="net.sf.basedb.core.data.FormulaData"
78      usage="nonstrict-read-write"
79    />
80    <collection-cache
81      collection="net.sf.basedb.core.data.FormulaData.formulas"
82      usage="nonstrict-read-write"
83    />
84    <class-cache
85      class="net.sf.basedb.core.data.GroupData"
86      usage="nonstrict-read-write"
87    />
88    <class-cache
89      class="net.sf.basedb.core.data.HardwareTypeData"
90      usage="nonstrict-read-write"
91    />
92    <class-cache
93      class="net.sf.basedb.core.data.HelpData"
94      usage="nonstrict-read-write"
95    />
96    <class-cache
97      class="net.sf.basedb.core.data.HybridizationData"
98      usage="nonstrict-read-write"
99    />
100    <class-cache
101      class="net.sf.basedb.core.data.LabelData"
102      usage="nonstrict-read-write"
103    />
104    <class-cache
105      class="net.sf.basedb.core.data.MimeTypeData"
106      usage="nonstrict-read-write"
107    />
108    <class-cache
109      class="net.sf.basedb.core.data.NewsData"
110      usage="nonstrict-read-write"
111    />
112    <class-cache
113      class="net.sf.basedb.core.data.PlateData"
114      usage="nonstrict-read-write"
115    />
116    <class-cache
117      class="net.sf.basedb.core.data.PlateEventTypeData"
118      usage="nonstrict-read-write"
119    />
120    <class-cache
121      class="net.sf.basedb.core.data.PlateGeometryData"
122      usage="nonstrict-read-write"
123    />
124    <class-cache
125      class="net.sf.basedb.core.data.PlateTypeData"
126      usage="nonstrict-read-write"
127    />
128    <class-cache
129      class="net.sf.basedb.core.data.PlatformData"
130      usage="nonstrict-read-write"
131    />
132    <class-cache
133      class="net.sf.basedb.core.data.PlatformVariantData"
134      usage="nonstrict-read-write"
135    />
136    <class-cache
137      class="net.sf.basedb.core.data.PluginConfigurationData"
138      usage="nonstrict-read-write"
139    />
140    <class-cache
141      class="net.sf.basedb.core.data.PluginDefinitionData"
142      usage="nonstrict-read-write"
143    />
144    <class-cache
145      class="net.sf.basedb.core.data.PluginTypeData"
146      usage="nonstrict-read-write"
147    />
148    <class-cache
149      class="net.sf.basedb.core.data.ProjectData"
150      usage="nonstrict-read-write"
151    />
152    <class-cache
153      class="net.sf.basedb.core.data.ProtocolTypeData"
154      usage="nonstrict-read-write"
155    />
156    <class-cache
157      class="net.sf.basedb.core.data.QuotaData"
158      usage="nonstrict-read-write"
159    />
160    <class-cache
161      class="net.sf.basedb.core.data.QuotaTypeData"
162      usage="nonstrict-read-write"
163    />
164    <class-cache
165      class="net.sf.basedb.core.data.RawBioAssayData"
166      usage="nonstrict-read-write"
167    />
168    <class-cache
169      class="net.sf.basedb.core.data.RoleData"
170      usage="nonstrict-read-write"
171    />
172    <class-cache
173      class="net.sf.basedb.core.data.ScanData"
174      usage="nonstrict-read-write"
175    />
176    <class-cache
177      class="net.sf.basedb.core.data.SoftwareTypeData"
178      usage="nonstrict-read-write"
179    />
180    <class-cache
181      class="net.sf.basedb.core.data.UserData"
182      usage="nonstrict-read-write"
183    />
184    <class-cache
185      class="net.sf.basedb.core.data.ArrayDesignData"
186      usage="nonstrict-read-write"
187    />
188    <class-cache
189      class="net.sf.basedb.core.data.ArrayBatchData"
190      usage="nonstrict-read-write"
191    />
192    <class-cache
193      class="net.sf.basedb.core.data.ArraySlideData"
194      usage="nonstrict-read-write"
195    />
196  </session-factory>
197
198</hibernate-configuration>
199
Note: See TracBrowser for help on using the repository browser.