Commit 5f9d07d6 authored by LAVENIER's avatar LAVENIER
Browse files

[fix] Add oracle and hsqldb properties, in server build

parent bf9bca6b
......@@ -38,9 +38,7 @@ import javax.annotation.Resource;
@Component
@ConditionalOnProperty(
name = "sumaris.persistence.denormalizedBatch.enabled",
havingValue = "true",
// TODO: change to trus when all errors fixed
matchIfMissing = false
havingValue = "true"
)
@Slf4j
public class BatchEventListener {
......
# HSQLDB configuration
spring.datasource.driver-class-name=org.hsqldb.jdbc.JDBCDriver
spring.datasource.hikari.connectionTestQuery=SELECT 1 FROM STATUS WHERE ID=1
spring.datasource.hikari.initializationFailTimeout=-1
spring.jpa.database-platform=net.sumaris.core.dao.technical.hibernate.spatial.HSQLSpatialDialect
spring.jpa.properties.hibernate.dialect=${spring.jpa.database-platform}
# Database connection
spring.datasource.platform=hsqldb
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.properties.hibernate.default_catalog=PUBLIC
spring.jpa.properties.hibernate.default_schema=PUBLIC
spring.datasource.url=jdbc:hsqldb:hsql://localhost/sumaris
# Oracle configuration
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.hikari.connectionTestQuery=SELECT 1 FROM STATUS WHERE ID=1
spring.datasource.hikari.initializationFailTimeout=-1
spring.jpa.database-platform=org.hibernate.spatial.dialect.oracle.OracleSpatial10gDialect
spring.jpa.properties.hibernate.dialect=${spring.jpa.database-platform}
# Database connection
spring.datasource.platform=oracle
spring.datasource.username=<USERNAME>
spring.datasource.password=
spring.jpa.properties.hibernate.default_catalog=
spring.jpa.properties.hibernate.default_schema=${spring.datasource.username}
spring.datasource.url=jdbc:oracle:thin:@192.168.0.1:1521/ORCL
spring.jpa.hibernate.use-new-id-generator-mappings=false
# Configure search mode (e.g. 'FRENCH_AI', 'SPANISH_AI')
spring.datasource.hikari.connectionInitSql=BEGIN \
DBMS_SESSION.SET_NLS('NLS_SORT', 'FRENCH_AI'); \
DBMS_SESSION.SET_NLS('NLS_COMP', 'LINGUISTIC'); \
END;
......@@ -6,11 +6,11 @@ spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Database connection
spring.datasource.username=sumaris
spring.datasource.password=sumaris
spring.jpa.properties.hibernate.default_catalog=sumaristest
spring.datasource.platform=oracle
spring.datasource.username=<USERNAME>
spring.datasource.password=
spring.jpa.properties.hibernate.default_catalog=${spring.datasource.username}
spring.jpa.properties.hibernate.default_schema=public
spring.datasource.url=jdbc:postgresql://localhost:5432/sumaristest
sumaris.persistence.jdbc.url=jdbc:postgresql://localhost:5432/sumaristest
......@@ -17,13 +17,16 @@ spring.main.allow-bean-definition-overriding=true
#server.url=
# Security
# FIXME: Pour le moment, l'authentification ne fonctionne que si token.enabled=true (avec ou sans LDAP)
# - using Token pubkey (default: true)
#spring.security.token.enabled=false
# - using LDAP (default: false)
#spring.security.ldap.enabled=true
#spring.security.ldap.baseDn=ou=annuaire
#spring.security.ldap.url=ldap://localhost:1389/dc=ifremer,dc=fr
# Enable Batch denormalization (default: <FIXME: must be true>)
# Enable Technical table updates (default: false)
#sumaris.persistence.technicalTables.update=true
# Enable Batch denormalization (default: false)
#sumaris.persistence.denormalizedBatch.enabled=true
# DataSource configuration (see default profile)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment