Archive for the tag 'domain driven design'

Feb 02 2009

Repository pattern and the domain

Published by Anders under Development,Java

Ever since I read the Domain Driven Design book by Eric Evans I have been wondering a bit about the Repository pattern. Especially the part where a domain object can communicate with a repository. In most Java systems today you will have Hibernate with lazy loading which enables you to think in domain objects, but [...]

2 responses so far

Jan 17 2009

DDD and generic repositories

Published by Anders under Development,Java

Reuse is good. That’s what we learn, so we all strive to reuse code, but sadly sometimes we over generalize and try to be too clever. I have had the suspicion that creating generic repositories that takes criteria/queries as input parameters is one such over generalization. Some things, in fact a lot of things, are [...]

3 responses so far

Nov 14 2007

DDD and Repositories

Published by Anders under Java

When I first read Domain Driven Design the role of a Repository was one of the things that were a bit hard to grasp. I really don’t think I have a clear vision of it still, but Fabio Kung has a post that clarifies some of the questions. It was written as a response to [...]

No responses yet