Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modify SWF-1525 to use HSQL rather than mySql

  • Loading branch information...
commit 3cf6b836189060234f339e708a864589bf56d37f 1 parent a0bf841
Rossen Stoyanchev authored
16 SWF-1525/pom.xml
View
@@ -199,26 +199,34 @@
<scope>runtime</scope>
</dependency>
<dependency>
+ <groupId>org.hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>1.8.0.10</version>
+ <scope>runtime</scope>
+ </dependency>
+<!--
+ <dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.18</version>
<scope>runtime</scope>
</dependency>
+ -->
</dependencies>
-
+
<repositories>
<repository>
<id>spring-related-snapshot-releases</id>
- <name>Spring Maven Snapshot Repository</name>
+ <name>Spring Snapshots</name>
<url>http://maven.springframework.org/snapshot</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
- <repository>
+ <repository>
<id>spring-related-milestone-releases</id>
- <name>Spring Maven Milestone Repository</name>
+ <name>Spring Milestones</name>
<url>http://maven.springframework.org/milestone</url>
<snapshots><enabled>false</enabled></snapshots>
</repository>
5 SWF-1525/src/main/resources/META-INF/persistence.xml
View
@@ -8,9 +8,12 @@
<class>org.springframework.webflow.issues.entity.House</class>
<class>org.springframework.webflow.issues.entity.Window</class>
<properties>
+ <!--
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
+ -->
+ <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
- <property name="hibernate.show_sql" value="true"/>
+ <property name="hibernate.show_hsql" value="true"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
</properties>
</persistence-unit>
7 SWF-1525/src/main/webapp/WEB-INF/spring/data-access-config.xml
View
@@ -27,11 +27,18 @@
</property>
</bean>
+
<bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource">
+ <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
+ <property name="url" value="jdbc:hsqldb:mem:booking" />
+ <property name="username" value="sa" />
+ <property name="password" value="" />
+ <!--
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/swf_1525" />
<property name="username" value="root" />
<property name="password" value="root" />
+ -->
<property name="maxActive" value="3" />
<property name="maxIdle" value="3" />
<property name="validationQuery" value="SELECT 1;" />
Please sign in to comment.
Something went wrong with that request. Please try again.