Thanks for writing this detailed blog. Have you given any thoughts about definition of a translation layer without the mapper? For example, if I have a dataclass in the domain model but I want to store that dataclass as a JSON in the persistence model.
Maybe I have a useful example: github.com/jorzel/recruitment/blob/main/src/infra… This data field under StoredEvent could be a dataclass.
Instead of using a mapper (and ORM), you can exploit raw SQL (or document insert/update procedure) within infrastructure repository implementation.
Kiriti Badam
Thanks for writing this detailed blog. Have you given any thoughts about definition of a translation layer without the mapper? For example, if I have a dataclass in the domain model but I want to store that dataclass as a JSON in the persistence model.