当前位置:网站首页>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
边栏推荐
- 科目三: 直线行驶
- Project exercise: the function of checking and modifying tables
- New attributes of ES6 array
- 小于n的最大数
- Motion capture system for end positioning control of flexible manipulator
- 技术实践干货 | 从工作流到工作流
- 关于 SAP UI5 应用 ui5.yaml 里的 paths 映射问题
- Kubernetes Chapter 8: deploy NFS system with kubernetes to complete database persistence (kubernetes work practice class)
- Start from scratch blazor server (1) -- project construction
- Design details of hidden iframe and form elements used by SAP ui5 fileuploader
猜你喜欢

Gradient ring progress bar

meta-data 占位符的引用

What is JSP?

Niuke topic -- binary search tree and bidirectional linked list

Getting started with unity

详解二叉树之堆

技术实践干货 | 从工作流到工作流

How to extract tables from PDF through C /vb.net

Natural sorting: comparable interface, customized sorting: the difference between comparator interface

With the arrival of large displacement hard core products, can the tank brand break through the ceiling of its own brand?
随机推荐
Understand the basic properties of BOM and DOM
如何通过C#/VB.NET从PDF中提取表格
Functions in JS
Start from scratch blazor server (1) -- project construction
Kubernetes Chapter 8: deploy NFS system with kubernetes to complete database persistence (kubernetes work practice class)
Big manufacturers finally can't stand "adding one second", and companies such as Microsoft, Google meta propose to abolish leap seconds
Select structure
Swift QQ授权登录 坑集
两表联查1
一个端到端的基于 form 表单的文件上传程序,包含客户端和服务器端
内置对象(下)
选 择 结 构
JDBC connection database
【SAML SSO解决方案】上海道宁为您带来SAML for ASP.NET/SAML for ASP.NET Core下载、试用、教程
About paths mapping in SAP ui5 application ui5.yaml
大排量硬核产品来袭,坦克品牌能否冲破自主品牌天花板?
Kubernetes Part 7: using kubernetes to deploy prometheus+grafana monitoring system (kubernetes work practice class)
Structure and bit segment of C language
Shell programming specifications and variables
Day 7 summary & homework