Without reading the article, I can say that I will never write my level of data access as part of domain objects.
Domain objects are one of the most sensitive parts of an application because they are used in all application layers. adding persistence logic inside them will cause you a lot of problems if you want to change the save layer a bit.
In addition, most of the code using this object should be indifferent to the fact that they are even stored.
source
share