Closed Alice52 closed 3 years ago
controller should do and just do follow things
JSR303
POJO: Plain Ordinary Java Object
PO: after a POJO is persisted DTO: directly using it to pass and transfer VO: directly used to correspond to the presentation layer
VO: Value[View] Object, Serving the logic
PO[Entity]: persistent object
DTO: Data Transfer Object,
BO: Business Object, combining PO
JavaBean: Reusable Component
DAO: Data Access Object
POJO persist to PO comnine PO to VO or DTO
DO: 高内聚的, OOP
高内聚的, OOP
我们会发现领域对象(Order)存在的唯一目的其实是为了让ORM这样的工具能够一次性地持久化,在不使用ORM的情况下,领域对象甚至都没有必要存在 Model 定义时就内聚相关 CRUD 方法
我们会发现领域对象(Order)存在的唯一目的其实是为了让ORM这样的工具能够一次性地持久化,在不使用ORM的情况下,领域对象甚至都没有必要存在
Model 定义时就内聚相关 CRUD 方法
controller
controller should do and just do follow things
JSR303
model
POJO: Plain Ordinary Java Object
VO: Value[View] Object, Serving the logic
PO[Entity]: persistent object
DTO: Data Transfer Object,
BO: Business Object, combining PO
JavaBean: Reusable Component
DAO: Data Access Object
DO:
高内聚的, OOP
digram
reference