Date: 2020-03-22
Accepted
There are possible solutions for writing and reading operations:
- use the same model;
- use separate models;
CQRS principle will be used. It gives the flexibility in optimizing model for read and write operations. The simple version of CQRS is implemented in this application. On write operations, full logic is executed via aggregate. On read operations, DTO objects are created via JPQL queries on repository level.