1. 06 6月, 2014 1 次提交
    • S
      Introduce annotation to execute SQL scripts in the TCF · 5fd6ebb5
      Sam Brannen 提交于
      Prior to this commit, it was possible to execute SQL scripts
      programmatically via ResourceDatabasePopulator, JdbcTestUtils, and
      ScriptUtils. Furthermore, it was also possible to execute SQL scripts
      declaratively via the <jdbc> XML namespace. However, it was not
      possible to execute SQL scripts declaratively on a per test class or
      per test method basis.
      
      This commit makes it possible to declaratively configure SQL scripts
      for execution in integration tests via annotations that can be declared
      at the class or method level. Details follow.
      
       - Introduced a repeatable @DatabaseInitializer annotation that can be
         used to configure SQL scripts at the class or method level with
         method-level overrides. @DatabaseInitializers serves as a container
         for @DatabaseInitializer.
      
       - Introduced a new DatabaseInitializerTestExecutionListener that is
         responsible for parsing @DatabaseInitializer and
         @DatabaseInitializers and executing SQL scripts.
      
       - DatabaseInitializerTestExecutionListener is registered by default in
         abstract base test classes as well as in TestContextBootstrapper
         implementations.
      
       - @DatabaseInitializer and @DatabaseInitializers may be used as
         meta-annotations; however, attribute overrides are not currently
         supported for repeatable annotations used as meta-annotations. This
         is a known limitation of Spring's AnnotationUtils.
      
       - The semantics for locating SQL script resources is consistent with
         @ContextConfiguration's semantics for locating XML configuration
         files. In addition, a default SQL script can be detected based
         either on the name of the annotated class or on the name of the
         annotated test method.
      
       - @DatabaseInitializer allows for specifying which DataSource and
         PlatformTransactionManager to use from the test's
         ApplicationContext, including default conventions consistent with
         TransactionalTestExecutionListener and @TransactionConfiguration.
      
       - @DatabaseInitializer supports all of the script configuration options
         currently supported by ResourceDatabasePopulator.
      
       - @DatabaseInitializer and DatabaseInitializerTestExecutionListener
         support execution phases for scripts that dictate when SQL scripts
         are executed (i.e., before or after a test method).
      
       - SQL scripts can be executed within the current test's transaction if
         present, outside of the current test's transaction if present, or
         always in a new transaction, depending on the value of the boolean
         requireNewTransaction flag in @DatabaseInitializer.
      
       - DatabaseInitializerTestExecutionListener delegates to
         ResourceDatabasePopulator#execute to actually execute the scripts.
      
      Issue: SPR-7655
      5fd6ebb5
  2. 05 6月, 2014 7 次提交
  3. 04 6月, 2014 1 次提交
  4. 02 6月, 2014 2 次提交
    • S
      Clarify the use of sessionTransacted · 674bad4c
      Stephane Nicoll 提交于
      This commit clarifies the role of the external transactionManager for
      a DMLC and the relationship with the sessionTransacted flag
      
      Issue: SPR-9200
      674bad4c
    • S
      Cache operation invocation hook point · aaae10ce
      Stephane Nicoll 提交于
      This commit adds a invokeOperation protected method in case one
      needs a hook point in the way the underlying cache method is invoked,
      and how exceptions that might be thrown by that invocation are handled.
      
      Issue: SPR-11540
      aaae10ce
  5. 31 5月, 2014 7 次提交
  6. 30 5月, 2014 7 次提交
  7. 29 5月, 2014 1 次提交
    • S
      Upgrade Eclipse project settings for Java 8 · d46b29e7
      Sam Brannen 提交于
       - Set the eclipse.jdt source and target compatibility to 1.8 in
         ide.gradle.
      
       - Updated the instructions in import-into-eclipse.sh to reflect minimum
         requirements for building Spring Framework 4.1 against Java 8 with
         Eclipse and STS
      
      Issue: SPR-11831
      d46b29e7
  8. 28 5月, 2014 8 次提交
  9. 27 5月, 2014 1 次提交
  10. 26 5月, 2014 3 次提交
    • S
      polishing · bb6e07bd
      Stephane Nicoll 提交于
      bb6e07bd
    • S
      Update JMS documentation · 05041ff3
      Stephane Nicoll 提交于
      This commit updates the JMS documentation regarding the side effects
      of not using the  cache with a non durable subscriber.
      
      Issue: SPR-7883
      05041ff3
    • S
      Revisit JmsMessagingTemplate · 9fabcad3
      Stephane Nicoll 提交于
      This commit revisits JmsMessagingTemplate and adds support for
      receiving operations as well. JmsMessageSendingOperations has been
      renamed to JmsMessageOperations.
      
      The messaging abstraction did not split receiving and request-reply
      operations. AbstractMessageReceivingTemplate has been created to hold
      only the receiving operations.
      
      Issue: SPR-11772
      9fabcad3
  11. 25 5月, 2014 2 次提交