#590 add explanation for DTO

This commit is contained in:
Ilkka Seppälä
2020-07-18 17:10:50 +03:00
parent 5aacdecc6c
commit 09cee8ffa7
5 changed files with 121 additions and 7 deletions

View File

@ -32,15 +32,15 @@ import org.slf4j.LoggerFactory;
* The Data Transfer Object pattern is a design pattern in which an data transfer object is used to
* serve related information together to avoid multiple call for each piece of information.
*
* <p>In this example, ({@link CustomerClientApp}) as as customer details consumer i.e. client to
* <p>In this example, ({@link App}) as as customer details consumer i.e. client to
* request for customer details to server.
*
* <p>CustomerResource ({@link CustomerResource}) act as server to serve customer information. And
* The CustomerDto ({@link CustomerDto} is data transfer object to share customer information.
*/
public class CustomerClientApp {
public class App {
private static final Logger LOGGER = LoggerFactory.getLogger(CustomerClientApp.class);
private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
/**
* Method as act client and request to server for details.