lundi 23 mars 2020

DDD Aggregate Root for static tables

We are refactoring an existing application using Spring Data JPA. There are close to 250 static code database tables which can be referred by other aggregate roots. In order to attach a code table to an aggregate root, we need to access the particular code table record. Does that mean we should create 250 repositories? I mean a repo per static code table since it's an aggregate root itself?

I saw this question, which is kind of similar, but in my case I have a lot of static tables.

Aucun commentaire:

Enregistrer un commentaire