Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
blueriq: <service>: datasource: <datasource-name>: url: <url> username: <username> password: <password> driver-class-name: <driver-class> validation-query: <validation-query> testWhileIdle: true timeBetweenEvictionRunsMillis: 5000 hibernate: dialect: <dialect> hbm2ddl: auto: validate id: new_generator_mappings: true show_sql: false use_nationalized_character_data: true |
Example configuration
Below are configuration examples which contain a JDBC url, driver-class, validation query and dialect for each supported database.
...
Code Block | ||||
---|---|---|---|---|
| ||||
blueriq:
<service>:
datasource:
<datasource-name>:
url: jdbc:postgresql://<host>:<port>/<database>
username: <username>
password: <password>
driver-class-name: org.postgresql.Driver
validation-query: SELECT 1
testWhileIdle: true
timeBetweenEvictionRunsMillis: 5000
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
hbm2ddl:
auto: validate
id:
new_generator_mappings: true
show_sql: false
use_nationalized_character_data: true
|
Database drivers
Depending on the underlying database, a specific driver needs to be installed on the application server as described on Configuring JDBC database drivers.
Overview
Content Tools