docs: define repository pattern boundary

This commit is contained in:
AzuTear
2026-06-28 09:48:34 +02:00
parent ed8efda692
commit 170308ba05
8 changed files with 171 additions and 2 deletions
+8 -2
View File
@@ -125,9 +125,15 @@ Project-specific DTO rules:
## Repository Rules
Repositories, gateways, or data access abstractions should express persistence
intent without hiding important consistency behavior.
Use the repository pattern as the default persistence boundary.
Repositories, gateways, or data access abstractions should express domain
persistence intent without hiding important consistency behavior.
- Define repository interfaces at the application or domain boundary.
- Implement repositories in infrastructure or persistence-specific modules.
- Prefer specific repositories such as `OrderRepository` or
`SupportRequestRepository`.
- Keep query methods specific enough to reveal purpose.
- Avoid generic repositories when they obscure domain behavior.
- Document transaction boundaries.