The service layer classes and interfaces will follow the same naming conventions of our DAO layer, where
Service simply replaces the
Dao equivalent name:
Our first definition will be for the
The service layer will communicate with the request handling tier through interfaces that return
Result Data Transfer Objects (DTO). The DTO design pattern is commonly used in enterprise application programming to transfer data between different layers or subsystems. Our
Result DTO will have the following three properties:
boolean success: This property is used if the action was successful ...