Hi all Im trying to build a solution using a DDD approach. Ive created a set of entities, and some datamappers i use to remove the data persistence dependency from the entities. Is it correct of me, to use a datamapper like a "finder" class, i have methods like
getById() getUsersByRanking() getByLastName()
or should the datamapper not contain specialized finder methods and only use getById()?
Is it correct of me to assume that the Repository pattern is used to remove those "specialized" finder methods that i have added to the datamapper, and instead give the client a Query Language that they can use instead to find entities by other means than the ID?.
I really hope someone can help me clarify how these patterns interact with each other Domain model, Datamapper, Data presistence, Repository.
Ive read alot in the Martin Fowler POEAA but having a hard time connecting the dots :)