From 85e4b24abb36d3953eb322fc97cf00ffce59cbc9 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 20 Mar 2015 15:31:41 +0100 Subject: [PATCH] Introduce spring-jdbc-4.2.xsd This commit introduces spring-jdbc-4.2.xsd in order to support upcoming changes to the JDBC XML namespace. In addition, this commit polishes the XSD documentation with regard to use cases for script execution. --- .../main/resources/META-INF/spring.schemas | 3 +- .../jdbc/config/spring-jdbc-4.2.xsd | 186 ++++++++++++++++++ .../jdbc/config/jdbc-config.xml | 23 ++- 3 files changed, 199 insertions(+), 13 deletions(-) create mode 100644 spring-jdbc/src/main/resources/org/springframework/jdbc/config/spring-jdbc-4.2.xsd diff --git a/spring-jdbc/src/main/resources/META-INF/spring.schemas b/spring-jdbc/src/main/resources/META-INF/spring.schemas index 59e1e68754..44835b63f1 100644 --- a/spring-jdbc/src/main/resources/META-INF/spring.schemas +++ b/spring-jdbc/src/main/resources/META-INF/spring.schemas @@ -3,4 +3,5 @@ http\://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframew http\://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.xsd http\://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd=org/springframework/jdbc/config/spring-jdbc-4.0.xsd http\://www.springframework.org/schema/jdbc/spring-jdbc-4.1.xsd=org/springframework/jdbc/config/spring-jdbc-4.1.xsd -http\://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-4.1.xsd +http\://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd=org/springframework/jdbc/config/spring-jdbc-4.2.xsd +http\://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-4.2.xsd diff --git a/spring-jdbc/src/main/resources/org/springframework/jdbc/config/spring-jdbc-4.2.xsd b/spring-jdbc/src/main/resources/org/springframework/jdbc/config/spring-jdbc-4.2.xsd new file mode 100644 index 0000000000..0808d3d569 --- /dev/null +++ b/spring-jdbc/src/main/resources/org/springframework/jdbc/config/spring-jdbc-4.2.xsd @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + elements. + ]]> + + + + + + + + + + + + + + + + + + + + + + Is this bean "enabled", meaning the scripts will be executed? + Defaults to true but can be used to switch on and off script execution + depending on the environment. + + + + + + + Should failed SQL statements be ignored during execution? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spring-jdbc/src/test/resources/org/springframework/jdbc/config/jdbc-config.xml b/spring-jdbc/src/test/resources/org/springframework/jdbc/config/jdbc-config.xml index 5a89b9183b..fe6ff7be90 100644 --- a/spring-jdbc/src/test/resources/org/springframework/jdbc/config/jdbc-config.xml +++ b/spring-jdbc/src/test/resources/org/springframework/jdbc/config/jdbc-config.xml @@ -1,23 +1,22 @@ - + http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.2.xsd"> - - + + - + - - + + - + - - + + - +