mardi 10 décembre 2019

Updated timestamp in service layer or repository?

My application layer handles the "updated" timestamp of a DB row. The app uses a service layer and a repository layer before it touches the DB.

My question is, where should the timestamp logic appear? E.g., should it be in clientsService->updateClient(); or in clientsRepo->updateClient();?

Aucun commentaire:

Enregistrer un commentaire