当前位置:网站首页>What are VO, do, dto and Po
What are VO, do, dto and Po
2022-07-27 17:20:00 【Jade faced Dragon】
1、VO
vo(view object) View objects
For display layer , Its function is to put a specified page ( Or component ) All the data of , Generally, it is transmitted from the back end to the front end .
2、DTO
DTO(data transfer object) Data transmission object
Used for data transmission between presentation layer and logic layer .
3、DO
DO(domain object)
Tangible or intangible business entities abstracted from the real world .
4、PO
po(persistent object)
It forms a one-to-one correspondence with the data structure of the persistence layer . If the persistence layer is a relational database , that PO The attributes of and fields in the database correspond one by one .
5、VO and DTO The difference between
The most essential difference between them is :VO Represents the data that needs to be displayed ,DTO Represents the data that the service layer needs to receive and return .
give an example
Take an operation of filling in a form as an example :
- The user fills out the form , The data of the form is matched as VO
- The display layer puts VO Convert to what the service layer requires DTO, Pass it to the service layer
- The service layer first bases on DTO Construct a DO, call DO Business method to complete specific business
- The service layer will DO Convert to PO, Pass to persistence layer , The persistence layer completes the persistence operation
边栏推荐
猜你喜欢

Hidden iframe design details of SAP ui5 fileuploader

Reference of meta data placeholder

成本高、落地难、见效慢,开源安全怎么办?

Chen Yili of ICT Institute: reducing cost and increasing efficiency is the greatest value of cloud native applications

Big manufacturers finally can't stand "adding one second", and companies such as Microsoft, Google meta propose to abolish leap seconds

信通院陈屹力:降本增效是云原生应用最大价值

Niuke topic - parity rearrangement of linked list, right view of output binary tree, bracket generation, first non repeating character in character stream

SAP UI5 FileUploader 使用的隐藏 iframe 和 form 元素的设计明细

立创EDA——PCB的布局(四)

两表联查1
随机推荐
记一次 .NET 某智慧物流 WCS系统 CPU 爆高分析
Mobile page layout
App Crash收集和分析
神经网络实现手写数字分类matlab
Hidden iframe design details of SAP ui5 fileuploader
SAP UI5 FileUploader 的隐藏 iframe 设计明细
腾讯云上传使用
成本高、落地难、见效慢,开源安全怎么办?
Cryptography series: certificate format representation of PKI X.509
合工大苍穹战队视觉组培训Day8——视觉,目标识别
Smart fish tank design based on stm32
Dense optical flow extraction dense_ Flow understanding
技术实践干货 | 从工作流到工作流
ES6 array method and pseudo array to array method
二舅的外甥和他的学生们
Natural sorting: comparable interface, customized sorting: the difference between comparator interface
三表联查2
立创EDA——原理图的布局与检查(三)
Shell programming specifications and variables
动作捕捉系统用于柔性机械臂的末端定位控制