What is DAO layer in spring boot?
Also to know is, what is Dao in spring boot?
June 23rd , 2015. Agnivesh Verma. In this article first we will understand what DAO is, then the DAO module in Spring. DAO stands for Data Access Object. It's a design pattern in which a data access object (DAO) is an object that provides an abstract interface to some type of database or other persistence mechanisms.
Similarly one may ask, what is DAO layer?
In computer software, a data access object (DAO) is a pattern that provides an abstract interface to some type of database or other persistence mechanism. By mapping application calls to the persistence layer, the DAO provides some specific data operations without exposing details of the database.
DAO is a class that usually has the CRUD operations like save, update, delete. DTO is just an object that holds data. DTO will be passed as value object to DAO layer and DAO layer will use this object to persist data using its CRUD operation methods.