我认为,如果我按照您的建议使用 OO 委托,LineItem 实体将具有一个 getDetailItemData() 方法。
I suppose if I was to follow your advice and use OO delegation, the LineItem entity would have a getDetailItemData() method.
下面的统一建模语言(UML)类图说明了在 Go-ForIt 中是如何使用委托的
The following unified modeling language (UML) class diagram illustrates how delegation was used in Go-ForIt
通常,以通用的方式使用POJO委托类来简化对服务的调用。
POJO delegate classes are often used simplify invoking services in a common way.
应用推荐