~intranda/goobi-production/intranda1.7

« back to all changes in this revision

Viewing changes to WEB-INF/classes/hibernate.cfg.xml

  • Committer: steffen.hankiewicz at intranda
  • Date: 2011-07-05 12:54:18 UTC
  • Revision ID: steffen.hankiewicz@intranda.com-20110705125418-te8hmvrm6lwwt074
classes deleted

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0' encoding='utf-8'?>
2
 
<!DOCTYPE hibernate-configuration PUBLIC
3
 
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
4
 
 
5
 
 "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
6
 
 
7
 
<hibernate-configuration>
8
 
 
9
 
        <session-factory>
10
 
                <!-- SQL - Settings -->
11
 
                <property name="dialect">
12
 
                        org.hibernate.dialect.MySQLDialect
13
 
                </property>
14
 
                <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
15
 
                <!-- 
16
 
                Use the following JDBC URL to use the reconect feature of the MySQL driver.
17
 
                BTW: This is not recommended, use the reconnect features of the connection pool insteed
18
 
                jdbc:mysql://localhost/goobi?autoReconnect=true&amp;autoReconnectForPools=true
19
 
                 -->
20
 
                <property name="hibernate.connection.url">
21
 
                        jdbc:mysql://localhost/goobi
22
 
                </property>
23
 
                <property name="hibernate.connection.username">goobi</property>
24
 
                <property name="hibernate.connection.password">goobi</property>
25
 
 
26
 
                <!-- connection pool -->
27
 
                <property name="hibernate.c3p0.max_size">10</property>
28
 
                <property name="hibernate.c3p0.min_size">1</property>
29
 
                <property name="hibernate.c3p0.timeout">18</property>
30
 
                <property name="hibernate.c3p0.max_statements">0</property>
31
 
                <property name="hibernate.c3p0.idle_test_period">10</property>
32
 
                <property name="hibernate.c3p0.acquire_increment">1</property>
33
 
                <property name="hibernate.c3p0.validate">true</property>
34
 
 
35
 
                <!-- use the C3P0 connection pool -->
36
 
                <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
37
 
 
38
 
                <!-- Enable Hibernate's automatic session context management -->
39
 
                <property name="current_session_context_class">managed</property>
40
 
        
41
 
                <!-- Don't echo all executed SQL to stdout -->
42
 
                <property name="show_sql">false</property>
43
 
                <property name="hibernate.bytecode.use_reflection_optimizer">false</property>
44
 
                
45
 
                <!-- Update database schema on startup -->
46
 
                <property name="hbm2ddl.auto">update</property> 
47
 
                
48
 
                <!-- Die einzelnen Mappings -->
49
 
                <mapping resource="de/sub/goobi/Beans/Benutzergruppe.hbm.xml" />
50
 
                <mapping resource="de/sub/goobi/Beans/Benutzer.hbm.xml" />
51
 
                <mapping resource="de/sub/goobi/Beans/Prozess.hbm.xml" />
52
 
                <mapping resource="de/sub/goobi/Beans/Prozesseigenschaft.hbm.xml" />
53
 
                <mapping resource="de/sub/goobi/Beans/Schritt.hbm.xml" />
54
 
                <mapping resource="de/sub/goobi/Beans/Schritteigenschaft.hbm.xml" />
55
 
                <mapping resource="de/sub/goobi/Beans/Werkstueck.hbm.xml" />
56
 
                <mapping resource="de/sub/goobi/Beans/Werkstueckeigenschaft.hbm.xml" />
57
 
                <mapping resource="de/sub/goobi/Beans/Vorlage.hbm.xml" />
58
 
                <mapping resource="de/sub/goobi/Beans/Vorlageeigenschaft.hbm.xml" />
59
 
                <mapping resource="de/sub/goobi/Beans/Projekt.hbm.xml" />
60
 
                <mapping resource="de/sub/goobi/Beans/Regelsatz.hbm.xml" />
61
 
                <mapping resource="de/sub/goobi/Beans/LdapGruppe.hbm.xml" />
62
 
                <mapping resource="de/sub/goobi/Beans/ProjectFileGroup.hbm.xml" />
63
 
        <mapping resource="de/sub/goobi/Beans/HistoryEvent.hbm.xml" />
64
 
        
65
 
        </session-factory>
66
 
 
67
 
</hibernate-configuration>
 
 
b'\\ No newline at end of file'