Hi everyone, I'm trying to build a solution using the DDD approach. Ive created a set of entities, and some datamappers that I use to remove the persistence dependency of data from entities. Is this right for me, use datamapper as the "finder" class, I have methods like
GetByID () getUsersByRanking () getByLastName ()
or should datamapper not contain specialized search methods and use only getById ()?
Is it true to me that the Repository template is used to remove the specialized search methods that I added to the datamapper, and instead provide the client with a query language that they can use instead to find objects for others means identifier ?.
I really hope someone can help me clarify how these patterns interact with each other. Domain Model, Datamapper, Data Presistence, Repository.
I read a lot at Martin Fowler's POEAA, but having difficulty connecting the dots :)
source share