mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 22:58:59 +00:00
docs: Add tutorial links to patterns (#1901)
* Add API Gateway tutorial links * Add Model View Controller tutorial links * Add Data Access Object tutorial links * Add Data Transfer Object tutorial links * Add Data Mapper tutorial links Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
@@ -152,6 +152,12 @@ Use the API Gateway pattern when
|
||||
|
||||
* You're using microservices architecture and need a single point of aggregation for your microservice calls.
|
||||
|
||||
## Tutorials
|
||||
|
||||
* [Exploring the New Spring Cloud Gateway](https://www.baeldung.com/spring-cloud-gateway)
|
||||
* [Spring Cloud - Gateway](https://www.tutorialspoint.com/spring_cloud/spring_cloud_gateway.htm)
|
||||
* [Getting Started With Spring Cloud Gateway](https://dzone.com/articles/getting-started-with-spring-cloud-gateway)
|
||||
|
||||
## Credits
|
||||
|
||||
* [microservices.io - API Gateway](http://microservices.io/patterns/apigateway.html)
|
||||
|
||||
@@ -154,6 +154,11 @@ Use the Data Access Object in any of the following situations:
|
||||
* When you want to consolidate how the data layer is accessed.
|
||||
* When you want to avoid writing multiple data retrieval/persistence layers.
|
||||
|
||||
## Tutorials
|
||||
|
||||
* [The DAO Pattern in Java](https://www.baeldung.com/java-dao-pattern)
|
||||
* [Data Access Object Pattern](https://www.tutorialspoint.com/design_pattern/data_access_object_pattern.htm)
|
||||
|
||||
## Credits
|
||||
|
||||
* [J2EE Design Patterns](https://www.amazon.com/gp/product/0596004273/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0596004273&linkCode=as2&tag=javadesignpat-20&linkId=48d37c67fb3d845b802fa9b619ad8f31)
|
||||
|
||||
@@ -39,6 +39,12 @@ Use the Data Mapper in any of the following situations
|
||||
* when you want to decouple data objects from DB access layer
|
||||
* when you want to write multiple data retrieval/persistence implementations
|
||||
|
||||
## Tutorials
|
||||
|
||||
* [Spring Boot RowMapper](https://zetcode.com/springboot/rowmapper/)
|
||||
* [Spring BeanPropertyRowMapper tutorial](https://zetcode.com/spring/beanpropertyrowmapper/)
|
||||
* [Data Transfer Object Pattern in Java - Implementation and Mapping (Tutorial for Model Mapper & MapStruct)](https://stackabuse.com/data-transfer-object-pattern-in-java-implementation-and-mapping/)
|
||||
|
||||
## Known uses
|
||||
* [SqlSession.getMapper()](https://mybatis.org/mybatis-3/java-api.html)
|
||||
|
||||
@@ -52,4 +58,4 @@ Use the Data Mapper in any of the following situations
|
||||
* [Object–relational Mapping](https://en.wikipedia.org/wiki/Object%E2%80%93relational_mapping)
|
||||
|
||||
## Credits
|
||||
* [Data Mapper](http://richard.jp.leguen.ca/tutoring/soen343-f2010/tutorials/implementing-data-mapper/)
|
||||
* [Data Mapper](http://richard.jp.leguen.ca/tutoring/soen343-f2010/tutorials/implementing-data-mapper/)
|
||||
|
||||
@@ -107,6 +107,11 @@ Use the Data Transfer Object pattern when:
|
||||
* When you want to boost the performance to get resources.
|
||||
* You want reduced number of remote calls.
|
||||
|
||||
## Tutorials
|
||||
|
||||
* [Data Transfer Object Pattern in Java - Implementation and Mapping](https://stackabuse.com/data-transfer-object-pattern-in-java-implementation-and-mapping/)
|
||||
* [The DTO Pattern (Data Transfer Object)](https://www.baeldung.com/java-dto-pattern)
|
||||
|
||||
## Credits
|
||||
|
||||
* [Design Pattern - Transfer Object Pattern](https://www.tutorialspoint.com/design_pattern/transfer_object_pattern.htm)
|
||||
|
||||
@@ -20,6 +20,11 @@ Use the Model-View-Controller pattern when
|
||||
|
||||
* You want to clearly separate the domain data from its user interface representation
|
||||
|
||||
## Tutorials
|
||||
|
||||
* [Spring Boot MVC](https://zetcode.com/springboot/model/)
|
||||
* [Spring MVC Tutorial](https://www.baeldung.com/spring-mvc-tutorial)
|
||||
|
||||
## Credits
|
||||
|
||||
* [Trygve Reenskaug - Model-view-controller](http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)
|
||||
|
||||
Reference in New Issue
Block a user