On Aug 29, 6:42 pm, Brendan Erwin <[email protected]> wrote:
>
> If the logic inside an entity is complex enough to use the DAOs then  
> its probably better to wrap that logic up in some other, more focused  
> and individually testable, object and inject those instead of simply  
> injecting the DAOs.
>

That sounds reasonable to me.

> This is done because a domain entity will, over time, attract a large  
> amount of functionality and will get out of hand if it is directly  
> responsible for the various functions.
>

Also sounds good. Just don't get carried away and end up in the ditch
on the other side of the road (anemic domain model).


--Stuart
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to