Basic concepts of DAO-DTO, dao-dto

Source: Internet
Author: User

Basic concepts of DAO-DTO, dao-dto

DAO: encapsulate access to the database
DTO: binding an object to a database table

 

Generally speaking, DAO and DTO are objects first. Are these two objects used?

DAO: used to access data (for example, userDao. java)

DTO: used to convert data (pojo class in java. Example: user. java)


What is the difference between DAO and DTO?

DAO is called a data access object.
DTO is the data transmission object.
DAO is usually used to manipulate non-object data (such as data in relational databases) as objects.
DTO is usually used for direct data transmission between different layers (UI Layer, service layer, or domain model layer) to isolate different layers and reduce inter-layer coupling.

What is the concept of basic knowledge?

Hello, I'm glad to answer your question.

Only through basic knowledge can we learn advanced knowledge based on the corresponding foundation. Basic knowledge must be applied to all questions.
The higher formula can only be derived from the basic formula.

For example, only the basic knowledge of Newton's three laws can solve the mechanical problem.
Optical problems can be solved only after learning about the refraction and reflection dispersion of light
Only after learning the convex lens refraction law can we solve the convex lens problem.

Hope to adopt
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.