@Configuration @EnableJpaRepositories(value="org.powertac.visualizer.repository") @EnableJpaAuditing(auditorAwareRef="springSecurityAuditorAware") @EnableTransactionManagement public class DatabaseConfiguration extends Object
| Constructor and Description |
|---|
DatabaseConfiguration(org.springframework.core.env.Environment env) |
| Modifier and Type | Method and Description |
|---|---|
org.h2.tools.Server |
h2TCPServer()
Open the TCP port for the H2 database, so it is available remotely.
|
com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module |
hibernate5Module() |
liquibase.integration.spring.SpringLiquibase |
liquibase(org.springframework.core.task.TaskExecutor taskExecutor,
DataSource dataSource,
org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties liquibaseProperties) |
public DatabaseConfiguration(org.springframework.core.env.Environment env)
@Bean(initMethod="start",
destroyMethod="stop")
@Profile(value="dev")
public org.h2.tools.Server h2TCPServer()
throws SQLException
SQLException - if the server failed to start@Bean
public liquibase.integration.spring.SpringLiquibase liquibase(@Qualifier(value="taskExecutor")
org.springframework.core.task.TaskExecutor taskExecutor,
DataSource dataSource,
org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties liquibaseProperties)
@Bean public com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module hibernate5Module()
Copyright © 2019 Power TAC. All rights reserved.