Announcement Announcement Module
Collapse
No announcement yet.
Dependency Injection with Hibernate POJOs? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dependency Injection with Hibernate POJOs?

    My Hibernate-persisted POJOs are, of course, usually instantiated by a call to session.load(... ) or session.find( ... ).

    Is there any way to enable Spring Dependency Injection with these classes, or do they need to look up their dependencies explicitly through the ApplicationContext?

    Thanks!

  • #2
    There is an interesting thread How Common to Spring Manage Beans Created By Hibernate? in the architecture forum that discuss this.

    HTH
    Last edited by robyn; May 14th, 2006, 11:15 AM.

    Comment


    • #3
      Also, take a look at org.springframework.orm.hibernate.support.Dependen cyInjectionInterceptorFactoryBean in the sandbox. It's slated for the 1.2 release.

      Comment

      Working...
      X