On 12 Nov 2009, at 02:51, dan06 wrote:

>
> Hi Stephen,
>
> do you keep both the domain data and logic in the same domain object  
> - i.e.
> the ORM object maps to a table and has domain logic? Or do you have  
> one
> domain "data"/ORM object and another domain logic object?
>
> Best,
> Dan
> -- 
>



Hi Dan,

Yes - same domain object. Otherwise you end up duplicating everything  
and mapping from one inheritance hierarchy to another. The ORM tool is  
taking care of all the difficult mapping from object to database so  
your domain object can truly become an intelligent business object and  
not an anaemic domain model [1] [2]

Hope this helps.

Cheers,
--
Stephen

[1] http://en.wikipedia.org/wiki/Anemic_Domain_Model
[2] http://martinfowler.com/bliki/AnemicDomainModel.html

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to