• Dave Syer's avatar
    Add @Conditionals to permit JPA/Mongo mixed usage · 39a94428
    Dave Syer authored
    I decided to go with both approaches (make the autoconfig for
    repositories @ConditionalOnMissingBean(RepositoryFactoryBeanSupport),
    so the first one wins; and also make them conditional on
    spring.data.*.repositories.enabled=true. The ordering problem
    is still there really (it's not defined which repositories will
    be created by the autoconfig), so if a user is going to have
    2 repository implementations on the classpath, he is going to
    have to either choose one to disable, or manualy @Enable* the
    other one.
    
    Fixes gh-1042
    39a94428
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...