mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
137 lines
4.4 KiB
Properties
137 lines
4.4 KiB
Properties
|
|
|
|
## -------------------------------------------------------------
|
|
## Load (Dev/Test/Prod) server specific properties
|
|
## -------------------------------------------------------------
|
|
## This is a possible alternative to using JNDI to set environment
|
|
## properties externally (to the WAR file). This is another way
|
|
## your Dev, Test and Prod servers can have different properties.
|
|
|
|
#load.properties.override=${CATALINA_HOME}/conf/myapp.ebean.properties
|
|
|
|
ebean.encryptKeyManager=com.avaje.tests.basic.encrypt.BasicEncyptKeyManager
|
|
|
|
#ebean.vanillaMode=true
|
|
#ebean.allowSubclassing=false
|
|
|
|
ebean.autofetch.querytuning=false
|
|
ebean.autofetch.profiling=false
|
|
ebean.autofetch.implicitmode=default_off
|
|
#ebean.autofetch.implicitmode=default_onifempty
|
|
ebean.autofetch.profiling.min=1
|
|
ebean.autofetch.profiling.base=10
|
|
#ebean.autofetch.profiling.rate=0.05
|
|
ebean.autofetch.traceUsageCollection=false
|
|
|
|
|
|
ebean.ddl.generate=true
|
|
ebean.ddl.run=true
|
|
|
|
|
|
ebean.debug.sql=true
|
|
#ebean.debug.lazyload=false
|
|
|
|
#ebean.cluster.type=mcast
|
|
#ebean.cluster.mcast.listen.port=9768
|
|
#ebean.cluster.mcast.listen.address=235.1.1.1
|
|
#ebean.cluster.mcast.listen.disableLoopback=false
|
|
#ebean.cluster.mcast.send.port=9766
|
|
##ebean.debug.remotetransaction=true
|
|
#ebean.cluster.debuglevel=1
|
|
|
|
## -------------------------------------------------------------
|
|
## Transaction Logging
|
|
## -------------------------------------------------------------
|
|
|
|
## Use java util logging to log transaction details
|
|
#ebean.loggingToJavaLogger=true
|
|
|
|
## General logging level: (none, summary, sql)
|
|
ebean.logging.level=sql
|
|
|
|
## location of transaction logs
|
|
ebean.logging.directory=logs
|
|
#ebean.logging.directory=${catalina.base}/logs/trans
|
|
|
|
|
|
ebean.cacheWarmingDelay=-1
|
|
|
|
##ebean.transaction.rollbackOnChecked=false
|
|
|
|
## -------------------------------------------------------------
|
|
## Data Types
|
|
## -------------------------------------------------------------
|
|
|
|
#ebean.pg.databaseBooleanTrue=1
|
|
#ebean.pg.databaseBooleanFalse=0
|
|
|
|
## -------------------------------------------------------------
|
|
## Batch Mode
|
|
## -------------------------------------------------------------
|
|
|
|
#ebean.batch.mode=true
|
|
#ebean.batch.size=20
|
|
|
|
#ebean.namingConvention=com.avaje.ebean.config.UnderscoreNamingConvention
|
|
#ebean.namingConvention.sequenceFormat={table}_{column}_seq
|
|
#ebean.databaseSequenceBatchSize=1
|
|
|
|
## -------------------------------------------------------------
|
|
## DataSources (If using default Ebean DataSourceFactory)
|
|
## -------------------------------------------------------------
|
|
|
|
datasource.default=h2
|
|
|
|
datasource.h2.username=sa
|
|
datasource.h2.password=
|
|
datasource.h2.databaseUrl=jdbc:h2:mem:tests;DB_CLOSE_DELAY=-1
|
|
datasource.h2.databaseDriver=org.h2.Driver
|
|
datasource.h2.minConnections=1
|
|
datasource.h2.maxConnections=25
|
|
#datasource.h2.heartbeatsql=select 1
|
|
datasource.h2.isolationlevel=read_committed
|
|
datasource.h2.capturestacktrace=true
|
|
datasource.h2.maxStackTraceSize=20
|
|
datasource.h2.poolListener=com.avaje.tests.basic.MyTestDataSourcePoolListener
|
|
|
|
datasource.h2.customProperties=IGNORECASE=TRUE;MODE=Oracle;
|
|
|
|
datasource.hsqldb.username=sa
|
|
datasource.hsqldb.password=
|
|
datasource.hsqldb.databaseUrl=jdbc:hsqldb:mem:tests
|
|
datasource.hsqldb.databaseDriver=org.hsqldb.jdbcDriver
|
|
datasource.hsqldb.minConnections=1
|
|
datasource.hsqldb.maxConnections=25
|
|
|
|
datasource.mysql.username=test
|
|
datasource.mysql.password=test
|
|
datasource.mysql.databaseUrl=jdbc:mysql://127.0.0.1:3306/test
|
|
datasource.mysql.databaseDriver=com.mysql.jdbc.Driver
|
|
datasource.mysql.minConnections=1
|
|
datasource.mysql.maxConnections=25
|
|
#datasource.mysql.heartbeatsql=select count(*) from dual
|
|
datasource.mysql.isolationlevel=read_committed
|
|
|
|
datasource.ora.username=junk
|
|
datasource.ora.password=junk
|
|
datasource.ora.databaseUrl=jdbc:oracle:thin:@127.0.0.1:1521:XE
|
|
datasource.ora.databaseDriver=oracle.jdbc.driver.OracleDriver
|
|
datasource.ora.minConnections=1
|
|
datasource.ora.maxConnections=10
|
|
datasource.ora.heartbeatsql=select count(*) from dual
|
|
datasource.ora.isolationlevel=read_committed
|
|
datasource.ora.capturestacktrace=true
|
|
datasource.ora.customProperties=oracle.net.CONNECT_TIMEOUT=3000;oracle.jdbc.ReadTimeout=10000
|
|
|
|
datasource.pg.username=test
|
|
datasource.pg.password=test
|
|
datasource.pg.databaseUrl=jdbc:postgresql://127.0.0.1:5433/test
|
|
datasource.pg.databaseDriver=org.postgresql.Driver
|
|
datasource.pg.heartbeatsql=select 1
|
|
|
|
datasource.ms.username=sa
|
|
datasource.ms.password=changeme
|
|
datasource.ms.databaseUrl=jdbc:sqlserver://localhost:65188
|
|
datasource.ms.databaseDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
|