derby embedded db support initial commit; shutdown use case needs work
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
create table T_TEST (NAME varchar(50) not null);
|
||||
@@ -0,0 +1,3 @@
|
||||
drop table T_TEST if exists;
|
||||
|
||||
create table T_TEST (NAME varchar(50) not null);
|
||||
@@ -0,0 +1 @@
|
||||
insert into T_TEST (NAME) values ('Keith');
|
||||
3
org.springframework.jdbc/src/test/resources/schema.sql
Normal file
3
org.springframework.jdbc/src/test/resources/schema.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
drop table T_TEST if exists;
|
||||
|
||||
create table T_TEST (NAME varchar(50) not null);
|
||||
@@ -0,0 +1 @@
|
||||
insert into T_TEST (NAME) values ('Keith');
|
||||
Reference in New Issue
Block a user