Class DatabaseConfiguration


  • @Configuration
    @EnableJpaRepositories("de.trustable.ca3s.core.repository")
    @EnableJpaAuditing(auditorAwareRef="springSecurityAuditorAware")
    @EnableTransactionManagement
    public class DatabaseConfiguration
    extends Object
    • Constructor Detail

      • DatabaseConfiguration

        public DatabaseConfiguration​(org.springframework.core.env.Environment env)
    • Method Detail

      • h2TCPServer

        @Bean(initMethod="start",
              destroyMethod="stop")
        @Profile("cloud")
        public Object h2TCPServer()
                           throws SQLException,
                                  IOException
        Open the TCP port for the H2 database, so it is available remotely.
        Returns:
        the H2 database TCP server.
        Throws:
        SQLException - if the server failed to start.
        IOException