-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: domain driven design version of CaveatEmptor?
PostPosted: Fri Feb 22, 2008 11:22 am 
Newbie

Joined: Wed Feb 13, 2008 6:01 am
Posts: 8
Hi

Is there a domain driven design version of CaveatEmptor i.e. one that uses repositories and a rich domain model?

It would be great to see the DAO version and the DDD version side by side so if one exists please add a link.

Many thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 13, 2008 10:54 am 
Newbie

Joined: Thu Dec 13, 2007 2:52 pm
Posts: 3
Location: Prague
Why do you think that the Caveat Emptor application does not have a rich domain model? It has a rich domain model. Entities contain behaviour unlike applications with "anemic" domain models.
The DAO's in the application are exactly what Eric Evans call "Repositories".
To summarize, Caveat Emptor has utilized Domain Driven Design. It would be ridiculous not to apply DDD in an example application of object/relational mapping. No?

_________________
Bahadir KONU


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 13, 2008 12:08 pm 
Newbie

Joined: Wed Feb 13, 2008 6:01 am
Posts: 8
I appreciate the application has a rich domain model to some degree. The behavior does exist in some of the classes and since it is just a demo I did not expect there to be much behavior.

But in the application there is a One to One mapping between Dao's and entities. As I understand from the reading I have been doing the repositories should deal with aggregates. I have to confess I am still reading the book so I may not fully understand the notion of a repository yet.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.