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