Posts

Showing posts with the label flyway

How to integrate Flyway into our spring-batch jdbc application

How to integrate Flyway into our spring-batch jdbc application We have a spring-batch application with DB2 jdbc data source. Want to add Flyway migration capabilities to our app. I've been exploring this article, it makes perfect sense, except the section that mentions how to specify the 'entityManagerFactory' - their example is for JPA with Hibernate,and it looks like this: <!-- Entity Manager Factory configuration --> <bean id="entityManagerFactory" class="o.s.orm.jpa.LocalContainerEntityManagerFactoryBean" depends-on="flyway"> <property name="dataSource" ref="dataSource" /> <property name="jpaVendorAdapter"> <bean class="o.s.orm.jpa.vendor.HibernateJpaVendorAdapter"> <property name="database" value="${jpa.database}"/> </bean> </property> </bean> Our app is simple JDBC...