-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmysql.hibernate.cfg.xml
68 lines (52 loc) · 3.03 KB
/
mysql.hibernate.cfg.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version='1.0' encoding='utf-8'?>
<!--
Copyright (C) 2011 Sam Macbeth <sm1106 [at] imperial [dot] ac [dot] uk>
This file is part of Presage2.
Presage2 is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Presage2 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser Public License for more details.
You should have received a copy of the GNU Lesser Public License
along with Presage2. If not, see <http://www.gnu.org/licenses/>.
-->
<!-- Copyright (C) 2011 Sam Macbeth <sm1106 [at] imperial [dot] ac [dot]
uk> This file is part of Presage2. Presage2 is free software: you can redistribute
it and/or modify it under the terms of the GNU Lesser Public License as published
by the Free Software Foundation, either version 3 of the License, or (at
your option) any later version. Presage2 is distributed in the hope that
it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
Public License for more details. You should have received a copy of the GNU
Lesser Public License along with Presage2. If not, see <http://www.gnu.org/licenses/>. -->
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
<property name="connection.url">jdbc:mysql://localhost/presage</property>
<property name="connection.username">presage</property>
<property name="connection.password">mypassword</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>
<property name="current_session_context_class">thread</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">false</property>
<!-- Names the annotated entity class -->
<mapping class="uk.ac.imperial.presage2.db.hibernate.Simulation" />
<mapping class="uk.ac.imperial.presage2.db.hibernate.Agent" />
<mapping class="uk.ac.imperial.presage2.db.hibernate.Parameter" />
<mapping class="uk.ac.imperial.presage2.db.hibernate.AgentProperty" />
<mapping class="uk.ac.imperial.presage2.db.hibernate.EnvironmentProperty" />
<mapping class="uk.ac.imperial.presage2.db.hibernate.AgentState" />
</session-factory>
</hibernate-configuration>