|
|
@ -251,7 +251,7 @@ public class FlywayAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Additional configuration to ensure that {@link EntityManagerFactory} beans
|
|
|
|
* Additional configuration to ensure that {@link EntityManagerFactory} beans
|
|
|
|
* depend on the {@code flywayInitializer} bean.
|
|
|
|
* depend on any {@link FlywayMigrationInitializer} beans.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@ConditionalOnClass(LocalContainerEntityManagerFactoryBean.class)
|
|
|
|
@ConditionalOnClass(LocalContainerEntityManagerFactoryBean.class)
|
|
|
@ -260,14 +260,14 @@ public class FlywayAutoConfiguration {
|
|
|
|
extends EntityManagerFactoryDependsOnPostProcessor {
|
|
|
|
extends EntityManagerFactoryDependsOnPostProcessor {
|
|
|
|
|
|
|
|
|
|
|
|
public FlywayInitializerJpaDependencyConfiguration() {
|
|
|
|
public FlywayInitializerJpaDependencyConfiguration() {
|
|
|
|
super("flywayInitializer");
|
|
|
|
super(FlywayMigrationInitializer.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Additional configuration to ensure that {@link JdbcOperations} beans depend on
|
|
|
|
* Additional configuration to ensure that {@link JdbcOperations} beans depend on
|
|
|
|
* the {@code flywayInitializer} bean.
|
|
|
|
* any {@link FlywayMigrationInitializer} beans.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@ConditionalOnClass(JdbcOperations.class)
|
|
|
|
@ConditionalOnClass(JdbcOperations.class)
|
|
|
@ -276,14 +276,14 @@ public class FlywayAutoConfiguration {
|
|
|
|
extends JdbcOperationsDependsOnPostProcessor {
|
|
|
|
extends JdbcOperationsDependsOnPostProcessor {
|
|
|
|
|
|
|
|
|
|
|
|
public FlywayInitializerJdbcOperationsDependencyConfiguration() {
|
|
|
|
public FlywayInitializerJdbcOperationsDependencyConfiguration() {
|
|
|
|
super("flywayInitializer");
|
|
|
|
super(FlywayMigrationInitializer.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Additional configuration to ensure that {@link NamedParameterJdbcOperations}
|
|
|
|
* Additional configuration to ensure that {@link NamedParameterJdbcOperations}
|
|
|
|
* beans depend on the {@code flywayInitializer} bean.
|
|
|
|
* beans depend on any {@link FlywayMigrationInitializer} beans.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@ConditionalOnClass(NamedParameterJdbcOperations.class)
|
|
|
|
@ConditionalOnClass(NamedParameterJdbcOperations.class)
|
|
|
@ -292,7 +292,7 @@ public class FlywayAutoConfiguration {
|
|
|
|
extends NamedParameterJdbcOperationsDependsOnPostProcessor {
|
|
|
|
extends NamedParameterJdbcOperationsDependsOnPostProcessor {
|
|
|
|
|
|
|
|
|
|
|
|
public FlywayInitializerNamedParameterJdbcOperationsDependencyConfiguration() {
|
|
|
|
public FlywayInitializerNamedParameterJdbcOperationsDependencyConfiguration() {
|
|
|
|
super("flywayInitializer");
|
|
|
|
super(FlywayMigrationInitializer.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|