Results 1 to 10 of 102

Thread: DAO Reference Inside an Entity Domain Object?

Threaded View

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

    Default

    Quote Originally Posted by cyboc
    Are any of the heavyweights (e.g. Rod and Colin) going to chime in on this discussion?
    They tend to get real quiet on this point. It underscores a weakness of the framework; namely, it is sometimes difficult to perform injection on domain objects.

    Ben goes so far as to suggest that allowing a domain object to reference another Spring service is bad design. I respectfully disagree with that view.

    In http://forum.springframework.org/showthread.php?t=9846, Rod offers a solution for hydrating Hibernate objects, but it is only halfway implemented, and a final implementation is not scheduled until Spring 1.4.

    I know it's not an easy problem to solve, but I wish it was a higher priority issue.
    Last edited by robyn; May 16th, 2006 at 04:18 AM.

Similar Threads

  1. Replies: 2
    Last Post: Oct 10th, 2005, 05:12 PM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Other Hibernate DAO LazyInitializationExceptions
    By bernardsirius in forum Data
    Replies: 5
    Last Post: Feb 18th, 2005, 04:09 PM
  4. Replies: 9
    Last Post: Feb 8th, 2005, 09:25 PM
  5. Replies: 0
    Last Post: Jan 6th, 2005, 08:19 AM

Posting Permissions

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