source: trunk/api/core/conf/hibernate.cfg.xml @ 4429

Last change on this file since 4429 was 4429, checked in by olle, 11 years ago

Refs #786. Following BASE update in change set [5476] in BASE Ticket #1489, URL:s to DTD:s used in various Hibernate mappings files are changed as described in http://opensource.atlassian.com/projects/hibernate/browse/HHH-5485 (http://hibernate.sourceforge.net/*.dtd should be exchanged for http://www.hibernate.org/dtd/*.dtd).

File size: 4.1 KB
Line 
1<?xml version="1.0" ?>
2<!DOCTYPE hibernate-configuration PUBLIC
3  "-//Hibernate/Hibernate Configuration DTD//EN"
4  "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
5<!--
6  $Id: hibernate.cfg.xml 805 2006-10-30 14:53:59Z gregory $
7
8  Copyright (C) 2007 Gregory Vincic
9 
10   Files are copyright by their respective authors. The contributions to
11   files where copyright is not explicitly stated can be traced with the
12   source code revision system.
13   
14   This file is part of Proteios.
15   Available at http://www.proteios.org/
16   
17   Proteios is free software; you can redistribute it and/or
18   modify it under the terms of the GNU General Public License
19   as published by the Free Software Foundation; either version 2
20   of the License, or (at your option) any later version.
21   
22   Proteios is distributed in the hope that it will be useful,
23   but WITHOUT ANY WARRANTY; without even the implied warranty of
24   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25   GNU General Public License for more details.
26   
27   You should have received a copy of the GNU General Public License
28   along with this program; if not, write to the Free Software
29   Foundation, Inc., 59 Temple Place - Suite 330,
30   Boston, MA  02111-1307, USA.
31 
32  See http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html
33-->
34<hibernate-configuration>
35  <session-factory>
36 
37    <!-- JDBC/SQL options -->
38    <property name="jdbc.batch_size">0</property>
39    <property name="show_sql">false</property>
40    <property name="connection.release_mode">after_transaction</property>
41 
42    <!-- HQL parser options -->
43    <property name="query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</property>
44 
45    <!-- Connection pool options -->   
46    <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
47    <property name="c3p0.min_size">1</property>
48    <property name="c3p0.max_size">100</property>
49    <property name="c3p0.timeout">120</property>
50    <property name="c3p0.max_statements">0</property>
51     
52    <!-- Second-level cache options -->
53    <property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
54    <property name="cache.use_query_cache">true</property>
55    <class-cache
56      class="org.proteios.core.data.AnnotationTypeData"
57      usage="nonstrict-read-write"
58    />
59    <class-cache
60      class="org.proteios.core.data.BioMaterialData"
61      usage="nonstrict-read-write"
62    />
63    <class-cache
64      class="org.proteios.core.data.DirectoryData"
65      usage="nonstrict-read-write"
66    />
67    <class-cache
68      class="org.proteios.core.data.FileTypeData"
69      usage="nonstrict-read-write"
70    />
71    <class-cache
72      class="org.proteios.core.data.GroupData"
73      usage="nonstrict-read-write"
74    />
75    <class-cache
76      class="org.proteios.core.data.HardwareTypeData"
77      usage="nonstrict-read-write"
78    />
79    <class-cache
80      class="org.proteios.core.data.LabelData"
81      usage="nonstrict-read-write"
82    />
83    <class-cache
84      class="org.proteios.core.data.MimeTypeData"
85      usage="nonstrict-read-write"
86    />
87    <class-cache
88      class="org.proteios.core.data.NewsData"
89      usage="nonstrict-read-write"
90    />
91    <class-cache
92      class="org.proteios.core.data.PluginConfigurationData"
93      usage="nonstrict-read-write"
94    />
95    <class-cache
96      class="org.proteios.core.data.PluginDefinitionData"
97      usage="nonstrict-read-write"
98    />
99    <class-cache
100      class="org.proteios.core.data.PluginTypeData"
101      usage="nonstrict-read-write"
102    />
103    <class-cache
104      class="org.proteios.core.data.ProjectData"
105      usage="nonstrict-read-write"
106    />
107    <class-cache
108      class="org.proteios.core.data.ProtocolTypeData"
109      usage="nonstrict-read-write"
110    />
111    <class-cache
112      class="org.proteios.core.data.QuotaData"
113      usage="nonstrict-read-write"
114    />
115    <class-cache
116      class="org.proteios.core.data.QuotaTypeData"
117      usage="nonstrict-read-write"
118    />
119    <class-cache
120      class="org.proteios.core.data.RoleData"
121      usage="nonstrict-read-write"
122    />
123    <class-cache
124      class="org.proteios.core.data.SoftwareTypeData"
125      usage="nonstrict-read-write"
126    />
127    <class-cache
128      class="org.proteios.core.data.UserData"
129      usage="nonstrict-read-write"
130    />
131  </session-factory>
132
133</hibernate-configuration>
134
Note: See TracBrowser for help on using the repository browser.