Results 1 to 3 of 3

Thread: Dependency Injection with Hibernate POJOs?

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    Texas
    Posts
    155

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    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 at 10:15 AM.
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

  3. #3
    Join Date
    Aug 2004
    Posts
    1,104

    Default

    Also, take a look at org.springframework.orm.hibernate.support.Dependen cyInjectionInterceptorFactoryBean in the sandbox. It's slated for the 1.2 release.
    Thomas Risberg
    SpringSource by Pivotal
    http://www.springsource.org

Similar Threads

  1. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  2. Dependency Injection on Hibernate Entities
    By springland in forum Architecture
    Replies: 5
    Last Post: Jun 20th, 2005, 01:14 PM
  3. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  4. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM
  5. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •