]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.hibernate/src/test/resources/org/argeo/slc/hibernate/applicationContext.xml
Update license header
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.hibernate / src / test / resources / org / argeo / slc / hibernate / applicationContext.xml
index 09a4796e809e848c7b2cf354c6cd4ef71068e3e7..7bc13cf5af1120e718d2dd18a889e948dae7833b 100644 (file)
@@ -1,51 +1,62 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
-<!--\r
+       <!--\r
 \r
-    Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>\r
-\r
-    Licensed under the Apache License, Version 2.0 (the "License");\r
-    you may not use this file except in compliance with the License.\r
-    You may obtain a copy of the License at\r
-\r
-            http://www.apache.org/licenses/LICENSE-2.0\r
-\r
-    Unless required by applicable law or agreed to in writing, software\r
-    distributed under the License is distributed on an "AS IS" BASIS,\r
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-    See the License for the specific language governing permissions and\r
-    limitations under the License.\r
-\r
--->\r
+               Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org> Licensed under\r
+               the Apache License, Version 2.0 (the "License"); you may not use this\r
+               file except in compliance with the License. You may obtain a copy of\r
+               the License at http://www.apache.org/licenses/LICENSE-2.0 Unless\r
+               required by applicable law or agreed to in writing, software\r
+               distributed under the License is distributed on an "AS IS" BASIS,\r
+               WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r
+               implied. See the License for the specific language governing\r
+               permissions and limitations under the License.\r
+       -->\r
 \r
 <beans xmlns="http://www.springframework.org/schema/beans"\r
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
 \r
        <import resource="classpath:/org/argeo/slc/hibernate/spring.xml" />\r
+       <!--\r
+\r
+               <bean id="sessionFactory"\r
+               parent="slcTemplates.sessionFactory.hibernateBasic"> <property\r
+               name="dataSource" ref="dataSource" /> <property\r
+               name="hibernateProperties"> <value><![CDATA[\r
+               hibernate.dialect=org.hibernate.dialect.HSQLDialect\r
+               hibernate.hbm2ddl.auto=create\r
+               hibernate.current_session_context_class=thread ]]></value> </property>\r
+               </bean> <bean id="dataSource"\r
+               class="org.springframework.jdbc.datasource.SingleConnectionDataSource"\r
+               destroy-method="destroy" lazy-init="true"> <property\r
+               name="driverClassName" value="org.hsqldb.jdbcDriver" /> <property\r
+               name="url" value="jdbc:hsqldb:mem:test" /> <property name="username"\r
+               value="sa" /> <property name="password" value="" /> <property\r
+               name="suppressClose" value="true" /> </bean>\r
+       -->\r
 \r
        <bean id="sessionFactory" parent="slcTemplates.sessionFactory.hibernateBasic">\r
                <property name="dataSource" ref="dataSource" />\r
                <property name="hibernateProperties">\r
                        <value><![CDATA[\r
-                               hibernate.dialect=org.hibernate.dialect.HSQLDialect\r
-                               hibernate.hbm2ddl.auto=create\r
-                               hibernate.current_session_context_class=thread\r
-                       ]]></value>\r
+hibernate.dialect=org.hibernate.dialect.H2Dialect\r
+hibernate.hbm2ddl.auto=create\r
+hibernate.current_session_context_class=thread\r
+hibernate.jdbc.batch_size=20\r
+               ]]></value>\r
                </property>\r
        </bean>\r
-\r
+       \r
        <bean id="dataSource"\r
                class="org.springframework.jdbc.datasource.SingleConnectionDataSource"\r
                destroy-method="destroy" lazy-init="true">\r
-               <property name="driverClassName" value="org.hsqldb.jdbcDriver" />\r
-               <property name="url" value="jdbc:hsqldb:mem:test" />\r
+               <property name="driverClassName" value="org.h2.Driver" />\r
+               <property name="url" value="jdbc:h2:mem:test" />\r
                <property name="username" value="sa" />\r
                <property name="password" value="" />\r
                <property name="suppressClose" value="true" />\r
        </bean>\r
-\r
-\r
-\r
+       \r
        <bean id="testResultDao" parent="slcTemplates.dao.testResultDao">\r
                <property name="sessionFactory" ref="sessionFactory" />\r
        </bean>\r