Spring JPA: H2 datasource, comments explaining why I am not using the Spring way...
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Wed, 20 Jul 2016 20:34:42 +0000 (22:34 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Wed, 20 Jul 2016 20:34:42 +0000 (22:34 +0200)
SpringJava/JPA/spring-jpa-persistence/src/test/resources/datasource-test-configuration.xml

index 05ca000..8ad0406 100644 (file)
         http://www.springframework.org/schema/jee/spring-jee.xsd">\r
 \r
        \r
-       <!--  \r
+       <!-- \r
+               In this way we can not use all the available options for H2.\r
+               \r
+               Because of that I will be using the dataSource bean where I can choose as many options\r
+               as I want for H2.\r
     <jdbc:embedded-database id="dataSource" type="H2" />\r
        -->\r
+       \r
        <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">\r
                <property name="driverClassName" value="org.h2.Driver" />\r
                <property name="url" value="jdbc:h2:mem:mybatis_example;INIT=create schema if not exists mybatis_example\;SET SCHEMA mybatis_example;MODE=DB2;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE" />\r