Understanding Service and DAO layers
问题 I was asked to create documentation of classes in the business logic module of a project. I noticed that there was a pattern on how the classes where created. The pattern looks like this public class AModel(){ //fields //getter and setters } public class AService(){ public void processA(AModel model){ //creates instance of AModel, assigns values to fields //calls ADaoService methods } } public class ADaoService(){ //has methods which call ADao methods //sample public AModel retrieveById(long