Project

General

Profile

Download (3.87 KB) Statistics
| Branch: | Tag: | Revision:
1
#
2
# NOTE: this is the unitils.properties file for the cdmlib-persistence module
3
# a separate unitils.properties exists for cdmlib-io and for cdmlib-services
4
#
5
#
6
# the list of all properties is found in
7
# http://unitils.org/unitils-default.properties
8
#
9

    
10
### Unitils Modules ###
11
#
12
# List of modules that is loaded. Overloading this list is normally not useful, unless you want to add a custom
13
# module. Disabling a module can be performed by setting unitils.module.<modulename>.enabled to false.
14
# If a module's specific dependencies are not found (e.g. hibernate is not in you classpath), this module is not loaded,
15
# even if it is in this list and the enabled property is set to true. It's therefore not strictly necessary to disable
16
# any of these modules.
17
#DEFAULT: unitils.modules=database,dbunit,hibernate,mock,easymock,inject,spring,jpa
18
unitils.module.easymock.enabled=false
19
unitils.module.mock.enabled=false
20

    
21

    
22
### Database ###
23
#
24
# Name or path of the user specific properties file. This file should contain the necessary parameters to connect to the
25
# developer's own unit test schema. It is recommended to override the name of this file in the project specific properties
26
# file, to include the name of the project. The system will try to find this file in the classpath, the user home folder
27
# (recommended) or the local filesystem.
28
#
29
unitils.configuration.localFileName=unitils-cdmlib-local.properties
30
#
31
updateDataBaseSchema.enabled=true
32
#
33
dataSetStructureGenerator.xsd.dirName=src/test/resources/eu/etaxonomy/cdm/database/schema
34
#
35
# Fully qualified name of the implementation of org.unitils.dbmaintainer.maintainer.script.ScriptSource that is used.
36
# The default value is 'org.unitils.dbmaintainer.maintainer.script.FileScriptSource', which will retrieve the scripts
37
# from the local file system.
38
org.unitils.dbmaintainer.script.ScriptSource.implClassName=org.unitils.dbmaintainer.script.impl.ResourceScriptSource
39

    
40
dbMaintainer.script.locations=dbscripts
41
#dbMaintainer.script.locations=src/test/resources/dbscripts  - requires ScriptSource.implClassName=...DefaultScriptSource
42

    
43
dbMaintainer.dbVersionSource.autoCreateVersionTable=true
44

    
45
dbMaintainer.autoCreateExecutedScriptsTable=true
46
# H2 #
47
#
48
database.driverClassName=org.h2.Driver
49
database.url=jdbc:h2:mem:cdm
50
#database.url=jdbc:h2:file:~/.h2/cdm
51
database.dialect=h2
52
dbMaintainer.script.fileExtensions=h2.sql
53
database.userName=sa
54
database.password=
55
database.schemaNames=PUBLIC
56
org.dbunit.dataset.datatype.IDataTypeFactory.implClassName.h2=org.dbunit.ext.h2.H2DataTypeFactory
57
#org.dbunit.dataset.datatype.IDataTypeFactory.implClassName=org.dbunit.ext.h2.H2DataTypeFactory
58
#maybe we can replace this by org.unitils.core.dbsupport.H2DbSupport
59
org.unitils.core.dbsupport.DbSupport.implClassName.h2=eu.etaxonomy.cdm.database.H2DbSupport  
60
database.storedIndentifierCase.h2=auto
61
database.identifierQuoteString.h2=auto
62

    
63

    
64
#### Transaction mode ###
65
#
66
# If set to commit or rollback, each test is run in a transaction,
67
# which is committed or rolled back after the test is finished.
68
# Since we have many tests with incomplete data these tests would be
69
# failing during commit so it is better use rollback as default
70
# and set commit for individual test where necessary
71
DatabaseModule.Transactional.value.default=rollback
72

    
73
### Hibernate ###
74
#
75
HibernateModule.configuration.implClassName=org.hibernate.cfg.Configuration
76

    
77
## Same as defined in hibernate.cfg.xml.
78
hibernate.connection.provider_class=org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl
79

    
80
#Created for hibernate 5 support, not yet available in standard unitils 
81
unitils.module.hibernate.className=org.unitils.orm.hibernate.Hibernate5Module
82

    
83
#Since Hibernate 5 (or earlier > 4.1.10) using the Proxy does not correctly release 
84
#the connections to the pool after transaction finishes.
85
dataSource.wrapInTransactionalProxy=false
86

    
87

    
88

    
89

    
90

    
91

    
92

    
93

    
(5-5/6)