When using database migrations, I obviously want none of the DAOs to be usable before the migrations are run.
At the moment I'm declaring a lot of DAOs, all having a depends-on=databaseMigrator
property. I find this troubling, especially since it's error prone.
Is there a more compact way of doing this?
Notes:
- the depends-on attribute is not 'inherited' from parent beans;
- I am not using Hibernate or JPA so I can't make the sessionFactory bean
depend-on
the migrator.