Is there a recommend way to get Spring 2.5+ to autowire Hibernate (3.0+) domain objects. I realize that there is a way to do this using AspectJ (@Configurable
), but I would like to avoid pulling in AspectJ.
Some Googling found this DependencyInjectionInterceptorFactoryBean class but it seems to just live in the sandbox (and just in 2.0.x?).
I can create a 10-line Hibernate PreLoadEventListener
to do this autowiring for me, but I really assumed it would be something that org.springframework.orm.hibernate3
provided.