forked from SEDISH/openxds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepository.jdbc.cfg.xml
50 lines (42 loc) · 2.22 KB
/
repository.jdbc.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
<?xml version='1.0'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<!--
* ====================================================================
* This code is subject to the freebxml License, Version 1.1
*
* Copyright (c) 2001 - 2003 freebxml.org. All rights reserved.
*
* $Header: /cvsroot/ebxmlrr/omar/conf/database/repository.jdbc.cfg.xml,v 1.1 2004/08/11 10:46:19 doballve Exp $
* ====================================================================
HibernateSession cfg file for HibernateRepositoryManager.
When using this, Hibernate will handle connection to database.
@author Diego Ballve / Digital Artefacts
-->
<hibernate-configuration>
<session-factory>
<!--
<property name="dialect">net.sf.hibernate.dialect.HSQLDialect</property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:hsql://localhost/omar_registry</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>
-->
<property name="dialect">net.sf.hibernate.dialect.PostgreSQLDialect</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="connection.url">jdbc:postgresql://postgresql-openxds/openxds</property>
<!-- <property name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/openxds</property>
-->
<property name="connection.username">openxds</property>
<property name="connection.password">openxds</property>
<property name="connection.pool_size">10</property>
<property name="show_sql">false</property>
<!-- <property name="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JDBCTransactionFactory</property> -->
<!-- property name="hibernate.hbm2ddl.auto">update</property-->
<!-- Mapping files -->
<mapping resource="repository.hbm.xml"/>
</session-factory>
</hibernate-configuration>