Resolution: Won't Fix
Affects Version/s: 2.5.6
Fix Version/s: None
Last commented by a User:false
I'm trying to plug in a migration bean into our current context, and ideally it would like like this:
If I do this, I see that beans which are using the dao childs are being init-ed before the migrations are run.
I know that there are ways to work around this:
- declare the dependency on each child bean ( which we're doing right now )
- declare the dependency on the services using the dao beans ( which I find tedious and incorrect )
- create another bean-in-the-middle between the dataSource and the daos, which I find incorrect as well ( except when using e.g. hibernate session factory, but we're not )
The intuitive way for we would be to be able to use the depends-on on the parent bean.