PrismaPhonic / domain_patterns

Repo that holds both domain_patterns and domain_derive library crates
MIT License
26 stars 5 forks source link

Doubt: relation between AggregateRoot and Repository #4

Open Plozano94 opened 2 years ago

Plozano94 commented 2 years ago

Hi there!

I'm a bit newbie in DDD and I was just wondering why an impl of Repository requires the entity to implement AggregateRoot. In my POC Im developing an Image Repository and by now I'm not considering to build another entity that will be like a "bunch of pictures". Also, at this moment I dont want to implement kind of events to trigger operations in this repository.

Could you help me?