Permalink
Browse files

change from mysql to hsqldb when using an external database

  • Loading branch information...
markpollack committed Oct 8, 2010
1 parent 6bb568b commit ad5b536c06c95942e670717f83fbf9060948ba53
@@ -59,21 +59,22 @@
<context:exclude-filter expression=".*_Roo_.*" type="regex"/>
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
</context:component-scan>
- <!--
+
+ <!--
<bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" id="dataSource">
<property name="driverClassName" value="${database.driverClassName}"/>
<property name="url" value="${database.url}"/>
<property name="username" value="${database.username}"/>
<property name="password" value="${database.password}"/>
- <property name="validationQuery" value="SELECT 1 FROM DUAL"/>
<property name="testOnBorrow" value="true"/>
</bean>
-->
+
<jdbc:embedded-database id="dataSource" type="HSQL">
<jdbc:script location="classpath:schema.sql"/>
<jdbc:script location="classpath:restaurants-sample-data.sql"/>
</jdbc:embedded-database>
-
+
<bean class="org.springframework.orm.jpa.JpaTransactionManager" id="transactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>
@@ -1,6 +1,4 @@
-#Updated at Wed Sep 22 16:52:26 EDT 2010
-#Wed Sep 22 16:52:26 EDT 2010
-database.password=spring
-database.url=jdbc\:mysql\://localhost\:3306/test
-database.username=spring
-database.driverClassName=com.mysql.jdbc.Driver
+database.driverClassName=org.hsqldb.jdbcDriver
+database.url=jdbc:hsqldb:hsql://localhost:9001
+database.username=sa
+database.password=

0 comments on commit ad5b536

Please sign in to comment.