derby embedded db support initial commit; shutdown use case needs work

This commit is contained in:
Keith Donald
2009-05-16 15:05:28 +00:00
parent 662dbaaed8
commit eee52f8804
14 changed files with 136 additions and 8 deletions

View File

@@ -10,9 +10,14 @@
<jdbc:script location="classpath:org/springframework/jdbc/datasource/embedded/db-test-data.sql"/>
</jdbc:embedded-database>
<jdbc:embedded-database id="h2dataSource" type="H2">
<jdbc:embedded-database id="h2DataSource" type="H2">
<jdbc:script location="classpath:org/springframework/jdbc/datasource/embedded/db-schema.sql"/>
<jdbc:script location="classpath:org/springframework/jdbc/datasource/embedded/db-test-data.sql"/>
</jdbc:embedded-database>
<jdbc:embedded-database id="derbyDataSource" type="DERBY">
<jdbc:script location="classpath:org/springframework/jdbc/datasource/embedded/db-schema-derby.sql"/>
<jdbc:script location="classpath:org/springframework/jdbc/datasource/embedded/db-test-data.sql"/>
</jdbc:embedded-database>
</beans>

View File

@@ -0,0 +1 @@
create table T_TEST (NAME varchar(50) not null);

View File

@@ -0,0 +1,3 @@
drop table T_TEST if exists;
create table T_TEST (NAME varchar(50) not null);

View File

@@ -0,0 +1 @@
insert into T_TEST (NAME) values ('Keith');

View File

@@ -0,0 +1,3 @@
drop table T_TEST if exists;
create table T_TEST (NAME varchar(50) not null);

View File

@@ -0,0 +1 @@
insert into T_TEST (NAME) values ('Keith');