|
| 1 | +# ************************** |
| 2 | +# MySQL. |
| 3 | +# ************************** |
| 4 | +hibernate.connection.driver_class=com.mysql.jdbc.Driver |
| 5 | +hibernate.connection.url=jdbc:mysql://localhost:3306/sif3_infra |
| 6 | +hibernate.connection.username=root |
| 7 | +hibernate.connection.password= |
| 8 | +hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect |
| 9 | + |
| 10 | +# ************************** |
| 11 | +# Oracle client/server |
| 12 | +# ************************** |
| 13 | +#hibernate.default_schema=SIF |
| 14 | +# |
| 15 | +#dialect=org.hibernate.dialect.OracleDialect |
| 16 | +#connection.driver_class=oracle.jdbc.OracleDriver |
| 17 | +#connection.url=jdbc:oracle:thin:@..... |
| 18 | +#connection.username= |
| 19 | +#connection.password= |
| 20 | + |
| 21 | +# ************************** |
| 22 | +# Postgres client/server |
| 23 | +# ************************** |
| 24 | +#hibernate.default_schema=SIF3_INFRA |
| 25 | +# |
| 26 | +#dialect=org.hibernate.dialect.PostgreSQLDialect |
| 27 | +#connection.driver_class=org.postgresql.Driver |
| 28 | +#connection.url=jdbc:postgresql://localhost:5432/sif3_infra |
| 29 | +#connection.username= |
| 30 | +#connection.password= |
| 31 | + |
| 32 | +# ************************** |
| 33 | +# SQLite Embedded --> |
| 34 | +# ************************** |
| 35 | +#dialect=sif3.common.persist.common.SQLiteDialect |
| 36 | +#connection.driver_class=org.sqlite.JDBC |
| 37 | +#connection.url=jdbc:sqlite:/Development/GitHubRepositories/SIF3InfraRest/SIF3InfraREST/DB/Data/SIF3Infra.sqliteDB |
| 38 | +#connection.username= |
| 39 | +#connection.password= |
| 40 | + |
| 41 | +hibernate.show_sql=false |
| 42 | +hibernate.format_sql=true |
| 43 | + |
| 44 | +# C3P0 Properties |
| 45 | +## Defines the query that will be executed for all connection tests. |
| 46 | +hibernate.c3p0.preferredTestQuery=select 1 from dual |
| 47 | + |
| 48 | +## Determines how many connections at a time c3p0 will try to acquire when the pool is exhausted. |
| 49 | +hibernate.c3p0.acquire_increment=5 |
| 50 | + |
| 51 | +## If this is a number greater than 0, c3p0 will test all idle, pooled but unchecked-out connections, every this number of seconds. |
| 52 | +hibernate.c3p0.idle_test_period=300 |
| 53 | + |
| 54 | +## Seconds a Connection can remain pooled but unused before being discarded. Zero means idle connections never expire. |
| 55 | +hibernate.c3p0.timeout=1200 |
| 56 | + |
| 57 | +## Maximum number of Connections a pool will maintain at any given time. |
| 58 | +hibernate.c3p0.max_size=30 |
| 59 | + |
| 60 | +## The size of c3p0's global PreparedStatement cache. |
| 61 | +hibernate.c3p0.max_statements=10 |
| 62 | + |
| 63 | +## Minimum number of Connections a pool will maintain at any given time. |
| 64 | +hibernate.c3p0.min_size=10 |
| 65 | + |
| 66 | +#hibernate.c3p0.testConnectionOnCheckout=true |
| 67 | + |
| 68 | + |
0 commit comments