1. 04 Jun, 2014 2 commits
    • Andy Wilkinson's avatar
      c0c3c78f
    • Dave Syer's avatar
      Revert deferred DDL changes and re-oreder database migrations · 74166e77
      Dave Syer authored
      Schema initialization now happens in @PostConstruct (effectively)
      whether it is via the Hibernate EntityManagerFactory or the
      Boot DataSourceInitialization (in addition or instead). The data.sql
      script if it exists is still executed on an event fired from the
      other places, so those tests are passing.
      
      Flyway and liquibase have bean factory post processors (like
      the one they use to order the audit aspect in Spring Data) that
      enforce a dependency on those components from the EntityManagerFactory.
      So Hibernate validation is still happy (and there are 2 tests to
      prove it now as well).
      
      Fixes gh-1022
      74166e77
  2. 03 Jun, 2014 13 commits
  3. 02 Jun, 2014 4 commits
    • Dave Syer's avatar
      Defensive on startup with Multipart config · 77eaa9b2
      Dave Syer authored
      77eaa9b2
    • Dave Syer's avatar
      Ensure JPA/Security are not fighting with each other on startup · 1f82ef4d
      Dave Syer authored
      This is *really* nasty (and led me to discover a related bug
      https://jira.spring.io/browse/SPR-11844), but fortunately easy to
      hide from users once you have a test case.
      
      The problem is that Spring Security registers a `BeanPostProcessor`
      to handle `GlobalAuthenticationConfigurerAdapters`, and Boot
      registers a `BeanPostProcessor` to handle injecting the packages
      to scan into an `EntityManagerFactory` from `@EntityScan`. The
      clash comes because the `EntityScanBeanPostProcessor` wants to be
      postprocessed by the Security postprocessor, but if the Security
      configuration depends on JPA it won't be ready in time.
      
      The fix (or workaround) depending on how you look at it is to
      prevent the other bean post processors from taking an interest in
      `EntityScanBeanPostProcessor` at all (mark it as synthetic).
      
      Fixes gh-1008
      1f82ef4d
    • Dave Syer's avatar
      Defer SQL initialization to fit with JPA better · 49a09c80
      Dave Syer authored
      Added 2 new spring.datasource.* properties ("data" like
      "schema", and "deferDdl" like the "spring.jpa.hibernate.*"
      flag). The SQL scripts are then run separately and the "data"
      ones are triggered by a new DataSourceInitializedEvent,
      which is also published by the Hibernate DDL schema export.
      
      Fixes gh-1006
      49a09c80
    • Dave Syer's avatar
      Remove some compiler warnings · efcbb327
      Dave Syer authored
      efcbb327
  4. 01 Jun, 2014 14 commits
  5. 31 May, 2014 1 commit
    • Phillip Webb's avatar
      Exclude commons-logging from starter POMs · c719ab7a
      Phillip Webb authored
      Update all relevant starter POMs to include a `spring-core` dependency
      with an exclusion on `commons-logging`. This prevents `commons-logging`
      and `jcl-over-slf4j` from both being on the classpath.
      
      Also add enforcer rules to ensure that commons-logging doesn't sneak
      back in, and that there is no dependency convergence. (some additional
      libraries were required in spring-boot-dependencies)
      
      Tested with a sample maven project as well as using the `spring jar`
      command.
      
      Fixes gh-985
      c719ab7a
  6. 30 May, 2014 6 commits