Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the PO,VO,TO,QO,BO of java

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to understand the PO,VO,TO,QO,BO of java". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

PO (persistant object) persistent object

The concept that appears in the omax r mapping, if there is no omax r mapping, there is no such concept. Usually corresponding to the data model (database), there is also part of the business logic processing. It can be thought of as a java object that maps to a table in the database. The simplest PO is to correspond to a record in a table in the database, and multiple records can use a collection of PO. The PO should not contain any operations on the database.

VO (value object), value object

It is usually used for data transfer between business tiers, and just like PO, it only contains data. However, it should be an abstract business object, which may or may not correspond to the table. According to the needs of the business, I feel that it is passed on the web with DTO (data transfer object).

TO (Transfer Object), transfer object

An object that is transferred between different tie (relationships) of an application.

BO (business object), business object

From the perspective of the business model, see the domain objects in the UML component domain model. Encapsulating the java object of business logic, the business operation is carried out by calling the DAO method and combining with PO,VO.

The main function is to encapsulate the business logic into an object. This object can include one or more other objects.

For example, a resume, with educational experience, work experience, social relations and so on.

We can correspond educational experience to a PO, work experience to a PO, and social relations to a PO.

Create a BO object corresponding to the resume to process the resume, and each BO contains these PO.

In this way, when dealing with business logic, we can deal with BO.

This is the end of the content of "how to understand the PO,VO,TO,QO,BO of java". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report