This commit is contained in:
Ilkka Seppälä
2019-12-13 21:09:28 +02:00
parent 0335c61512
commit b2b1ba95eb
127 changed files with 282 additions and 450 deletions

View File

@ -3,11 +3,9 @@ layout: pattern
title: Repository
folder: repository
permalink: /patterns/repository/
categories: Persistence Tier
categories: Architectural
tags:
- Java
- Difficulty-Intermediate
- Spring
- Data access
---
## Intent
@ -23,10 +21,10 @@ querying is utilized.
## Applicability
Use the Repository pattern when
* the number of domain objects is large
* you want to avoid duplication of query code
* you want to keep the database querying code in single place
* you have multiple data sources
* The number of domain objects is large
* You want to avoid duplication of query code
* You want to keep the database querying code in single place
* You have multiple data sources
## Real world examples