I learnt flywaydb migration with java works with JDBC connection and also spring support through SpringTemplate, but flyway doesn\'t work with DAOs.
for tables/entit
Your DAOs rely on the very structure Flyway was designed to change. We therefore have a chicken and egg problem here. The way to solve this is to run Flyway before the rest of your application (including the DAOs) gets initialized.