docs: repository diagram

This commit is contained in:
Ilkka Seppälä
2025-04-09 21:57:39 +03:00
parent 09e531378f
commit 9e5d9e5a2f
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -29,6 +29,10 @@ In plain words
> Repositories are classes or components that encapsulate the logic required to access data sources. They centralize common data access functionality, providing better maintainability and decoupling the infrastructure or technology used to access databases from the domain model layer.
Sequence diagram
![Repository sequence diagram](./etc/repository-sequence-diagram.png)
## Programmatic Example of Repository Pattern in Java
Let's first look at the person entity that we need to persist.
Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB