I'm developing a project by applying the principles of DDD
, I created an aggregation class ( Conta
) it will contain the classes ( Agencia
) and ( Agente
) which as ( Conta
) have tables in the database. My question is this:
I would need to create a Repository
class and a Service class for each of my entities (Account, Agent and Agency) or should I only create ContaRepository
and within it do the insertions and searches of the 3 classes? p>