SAP Hybris的Convertor, Populator, Facade和DTO这几个概念是如何协同工作的
Hybris里极其重要的概念。 之前的issue谈到了Hybris MVC里的M指的是DTO,JSP作为V显示DTO的value,而DB层的Model和DTO的结构不一致。 那么,数据从DB读取之后,需要经过一个转换,写入到DTO。执行这个转换的role,就是Convertor+Populator。 注:DTO是软件设计里一个common的概念,不是Hybris特有。定义见 wiki Hybris官方定义 (1) Facade: A facade is a software design pattern that abstracts from an underlying implementation and offers an alternate, often reduced and less complex interface. (2) DTO:Data Transfer Objects (DTOs) are objects created to only contain values and have no business logic except for getter and setter methods. Using DTOs, you can “combine” Hybris items - for example, this document adds price-