config/dist/hibernate.cfg.xml

Code
Comments
Other
Rev Date Author Line
4888 06 Apr 09 nicklas 1 <?xml version="1.0" encoding="UTF-8" ?>
2959 27 Nov 06 nicklas 2 <!DOCTYPE hibernate-configuration PUBLIC 
2959 27 Nov 06 nicklas 3   "-//Hibernate/Hibernate Configuration DTD//EN"
5476 04 Nov 10 nicklas 4   "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
2959 27 Nov 06 nicklas 5 <!--
2959 27 Nov 06 nicklas 6   $Id$
2959 27 Nov 06 nicklas 7
3675 16 Aug 07 jari 8   Copyright (C) 2006 Nicklas Nordborg
2959 27 Nov 06 nicklas 9
2959 27 Nov 06 nicklas 10   This file is part of BASE - BioArray Software Environment.
2959 27 Nov 06 nicklas 11   Available at http://base.thep.lu.se/
2959 27 Nov 06 nicklas 12
2959 27 Nov 06 nicklas 13   BASE is free software; you can redistribute it and/or
2959 27 Nov 06 nicklas 14   modify it under the terms of the GNU General Public License
4474 05 Sep 08 jari 15   as published by the Free Software Foundation; either version 3
2959 27 Nov 06 nicklas 16   of the License, or (at your option) any later version.
2959 27 Nov 06 nicklas 17
2959 27 Nov 06 nicklas 18   BASE is distributed in the hope that it will be useful,
2959 27 Nov 06 nicklas 19   but WITHOUT ANY WARRANTY; without even the implied warranty of
2959 27 Nov 06 nicklas 20   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2959 27 Nov 06 nicklas 21   GNU General Public License for more details.
2959 27 Nov 06 nicklas 22
2959 27 Nov 06 nicklas 23   You should have received a copy of the GNU General Public License
4508 11 Sep 08 jari 24   along with BASE. If not, see <http://www.gnu.org/licenses/>.
2959 27 Nov 06 nicklas 25   
2959 27 Nov 06 nicklas 26   See http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html
2959 27 Nov 06 nicklas 27 -->
2959 27 Nov 06 nicklas 28 <hibernate-configuration>
2959 27 Nov 06 nicklas 29   <session-factory>
2959 27 Nov 06 nicklas 30   
2959 27 Nov 06 nicklas 31     <!-- JDBC/SQL options -->
2959 27 Nov 06 nicklas 32     <property name="jdbc.batch_size">0</property>
7156 24 May 16 nicklas 33     <property name="jdbc.fetch_size">1000</property>
2959 27 Nov 06 nicklas 34     <property name="show_sql">false</property>
2959 27 Nov 06 nicklas 35     <property name="connection.release_mode">after_transaction</property>
2959 27 Nov 06 nicklas 36   
2959 27 Nov 06 nicklas 37     <!-- Connection pool options -->
2959 27 Nov 06 nicklas 38     <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
2959 27 Nov 06 nicklas 39     <property name="c3p0.min_size">1</property>
2959 27 Nov 06 nicklas 40     <property name="c3p0.max_size">20</property>
2959 27 Nov 06 nicklas 41     <property name="c3p0.timeout">3600</property>
2959 27 Nov 06 nicklas 42     
2959 27 Nov 06 nicklas 43     <!-- Second-level cache options -->
6468 10 Jun 14 nicklas 44     <property name="cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property>
2959 27 Nov 06 nicklas 45     <property name="cache.use_query_cache">true</property>
6468 10 Jun 14 nicklas 46     <property name="cache.use_second_level_cache">true</property>
2959 27 Nov 06 nicklas 47     <class-cache
2959 27 Nov 06 nicklas 48       class="net.sf.basedb.core.data.AnnotationTypeData"
2959 27 Nov 06 nicklas 49       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 50     />
2959 27 Nov 06 nicklas 51     <class-cache
2959 27 Nov 06 nicklas 52       class="net.sf.basedb.core.data.AnnotationTypeCategoryData"
2959 27 Nov 06 nicklas 53       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 54     />
2959 27 Nov 06 nicklas 55     <class-cache
2959 27 Nov 06 nicklas 56       class="net.sf.basedb.core.data.BioMaterialData"
2959 27 Nov 06 nicklas 57       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 58     />
2959 27 Nov 06 nicklas 59     <class-cache
4670 27 Nov 08 martin 60       class="net.sf.basedb.core.data.BioPlateData"
4670 27 Nov 08 martin 61       usage="nonstrict-read-write"
4670 27 Nov 08 martin 62     />
4670 27 Nov 08 martin 63     <class-cache
5523 02 Dec 10 nicklas 64       class="net.sf.basedb.core.data.BioPlateEventTypeData"
5523 02 Dec 10 nicklas 65       usage="nonstrict-read-write"
5523 02 Dec 10 nicklas 66     />
5523 02 Dec 10 nicklas 67     <class-cache
5323 27 Apr 10 nicklas 68       class="net.sf.basedb.core.data.BioPlateTypeData"
5323 27 Apr 10 nicklas 69       usage="nonstrict-read-write"
5323 27 Apr 10 nicklas 70     />
5323 27 Apr 10 nicklas 71     <class-cache
3835 15 Oct 07 nicklas 72       class="net.sf.basedb.core.data.DataFileTypeData"
3835 15 Oct 07 nicklas 73       usage="nonstrict-read-write"
3835 15 Oct 07 nicklas 74     />
3835 15 Oct 07 nicklas 75     <class-cache
2959 27 Nov 06 nicklas 76       class="net.sf.basedb.core.data.DirectoryData"
2959 27 Nov 06 nicklas 77       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 78     />
2959 27 Nov 06 nicklas 79     <class-cache
2959 27 Nov 06 nicklas 80       class="net.sf.basedb.core.data.ExperimentData"
2959 27 Nov 06 nicklas 81       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 82     />
2959 27 Nov 06 nicklas 83     <class-cache
2959 27 Nov 06 nicklas 84       class="net.sf.basedb.core.data.FormulaData"
2959 27 Nov 06 nicklas 85       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 86     />
2959 27 Nov 06 nicklas 87     <collection-cache
2959 27 Nov 06 nicklas 88       collection="net.sf.basedb.core.data.FormulaData.formulas"
2959 27 Nov 06 nicklas 89       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 90     />
2959 27 Nov 06 nicklas 91     <class-cache
2959 27 Nov 06 nicklas 92       class="net.sf.basedb.core.data.GroupData"
2959 27 Nov 06 nicklas 93       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 94     />
2959 27 Nov 06 nicklas 95     <class-cache
5630 13 May 11 nicklas 96       class="net.sf.basedb.core.data.HelpData"
2959 27 Nov 06 nicklas 97       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 98     />
2959 27 Nov 06 nicklas 99     <class-cache
5630 13 May 11 nicklas 100       class="net.sf.basedb.core.data.ItemSubtypeData"
2959 27 Nov 06 nicklas 101       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 102     />
2959 27 Nov 06 nicklas 103     <class-cache
2959 27 Nov 06 nicklas 104       class="net.sf.basedb.core.data.MimeTypeData"
2959 27 Nov 06 nicklas 105       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 106     />
2959 27 Nov 06 nicklas 107     <class-cache
2959 27 Nov 06 nicklas 108       class="net.sf.basedb.core.data.NewsData"
2959 27 Nov 06 nicklas 109       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 110     />
2959 27 Nov 06 nicklas 111     <class-cache
5642 26 May 11 nicklas 112       class="net.sf.basedb.core.data.PhysicalBioAssayData"
5642 26 May 11 nicklas 113       usage="nonstrict-read-write"
5642 26 May 11 nicklas 114     />
5642 26 May 11 nicklas 115     <class-cache
2959 27 Nov 06 nicklas 116       class="net.sf.basedb.core.data.PlateData"
2959 27 Nov 06 nicklas 117       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 118     />
2959 27 Nov 06 nicklas 119     <class-cache
2959 27 Nov 06 nicklas 120       class="net.sf.basedb.core.data.PlateEventTypeData"
2959 27 Nov 06 nicklas 121       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 122     />
2959 27 Nov 06 nicklas 123     <class-cache
2959 27 Nov 06 nicklas 124       class="net.sf.basedb.core.data.PlateGeometryData"
2959 27 Nov 06 nicklas 125       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 126     />
2959 27 Nov 06 nicklas 127     <class-cache
2959 27 Nov 06 nicklas 128       class="net.sf.basedb.core.data.PlateTypeData"
2959 27 Nov 06 nicklas 129       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 130     />
2959 27 Nov 06 nicklas 131     <class-cache
3835 15 Oct 07 nicklas 132       class="net.sf.basedb.core.data.PlatformData"
3835 15 Oct 07 nicklas 133       usage="nonstrict-read-write"
3835 15 Oct 07 nicklas 134     />
3835 15 Oct 07 nicklas 135     <class-cache
3835 15 Oct 07 nicklas 136       class="net.sf.basedb.core.data.PlatformVariantData"
3835 15 Oct 07 nicklas 137       usage="nonstrict-read-write"
3835 15 Oct 07 nicklas 138     />
3835 15 Oct 07 nicklas 139     <class-cache
2959 27 Nov 06 nicklas 140       class="net.sf.basedb.core.data.PluginConfigurationData"
2959 27 Nov 06 nicklas 141       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 142     />
2959 27 Nov 06 nicklas 143     <class-cache
2959 27 Nov 06 nicklas 144       class="net.sf.basedb.core.data.PluginDefinitionData"
2959 27 Nov 06 nicklas 145       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 146     />
2959 27 Nov 06 nicklas 147     <class-cache
2959 27 Nov 06 nicklas 148       class="net.sf.basedb.core.data.PluginTypeData"
2959 27 Nov 06 nicklas 149       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 150     />
2959 27 Nov 06 nicklas 151     <class-cache
2959 27 Nov 06 nicklas 152       class="net.sf.basedb.core.data.ProjectData"
2959 27 Nov 06 nicklas 153       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 154     />
2959 27 Nov 06 nicklas 155     <class-cache
4541 22 Sep 08 nicklas 156       class="net.sf.basedb.core.data.QuantityData"
4541 22 Sep 08 nicklas 157       usage="nonstrict-read-write"
4541 22 Sep 08 nicklas 158     />
4541 22 Sep 08 nicklas 159     <class-cache
2959 27 Nov 06 nicklas 160       class="net.sf.basedb.core.data.QuotaData"
2959 27 Nov 06 nicklas 161       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 162     />
2959 27 Nov 06 nicklas 163     <class-cache
2959 27 Nov 06 nicklas 164       class="net.sf.basedb.core.data.QuotaTypeData"
2959 27 Nov 06 nicklas 165       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 166     />
2959 27 Nov 06 nicklas 167     <class-cache
2959 27 Nov 06 nicklas 168       class="net.sf.basedb.core.data.RawBioAssayData"
2959 27 Nov 06 nicklas 169       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 170     />
2959 27 Nov 06 nicklas 171     <class-cache
2959 27 Nov 06 nicklas 172       class="net.sf.basedb.core.data.RoleData"
2959 27 Nov 06 nicklas 173       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 174     />
2959 27 Nov 06 nicklas 175     <class-cache
5632 17 May 11 nicklas 176       class="net.sf.basedb.core.data.TagData"
5632 17 May 11 nicklas 177       usage="nonstrict-read-write"
5632 17 May 11 nicklas 178     />
5632 17 May 11 nicklas 179     <class-cache
4541 22 Sep 08 nicklas 180       class="net.sf.basedb.core.data.UnitData"
4541 22 Sep 08 nicklas 181       usage="nonstrict-read-write"
4541 22 Sep 08 nicklas 182     />
4541 22 Sep 08 nicklas 183     <class-cache
4541 22 Sep 08 nicklas 184       class="net.sf.basedb.core.data.UnitSymbolData"
4541 22 Sep 08 nicklas 185       usage="nonstrict-read-write"
4541 22 Sep 08 nicklas 186     />
4541 22 Sep 08 nicklas 187     <class-cache
2959 27 Nov 06 nicklas 188       class="net.sf.basedb.core.data.UserData"
2959 27 Nov 06 nicklas 189       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 190     />
2959 27 Nov 06 nicklas 191     <class-cache
2959 27 Nov 06 nicklas 192       class="net.sf.basedb.core.data.ArrayDesignData"
2959 27 Nov 06 nicklas 193       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 194     />
2959 27 Nov 06 nicklas 195     <class-cache
2959 27 Nov 06 nicklas 196       class="net.sf.basedb.core.data.ArrayBatchData"
2959 27 Nov 06 nicklas 197       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 198     />
2959 27 Nov 06 nicklas 199     <class-cache
2959 27 Nov 06 nicklas 200       class="net.sf.basedb.core.data.ArraySlideData"
2959 27 Nov 06 nicklas 201       usage="nonstrict-read-write"
2959 27 Nov 06 nicklas 202     />
2959 27 Nov 06 nicklas 203   </session-factory>
2959 27 Nov 06 nicklas 204
2959 27 Nov 06 nicklas 205 </hibernate-configuration>
2959 27 Nov 06 nicklas 206