# Mapping Data to Models

Mapping Data to Models: Mapping Data to Models: an overview, Model Review, Mapping Data to Models, Data Access Objects, Example.

Updated: November 16, 2026

1. [Mapping Data to Models: an overview](https://www.ask-codey.com/lessons/mapping-data-to-models-an-overview) (Journeyman): Storing query results in model objects lets your program reuse the data without querying the database again.
2. [Model Review](https://www.ask-codey.com/lessons/mapping-data-to-models-model-review) (Journeyman): A Category model class has a private field, a getter and a setter for each column of the categories table.
3. [Mapping Data to Models](https://www.ask-codey.com/lessons/mapping-data-to-models) (Journeyman): Turn each row of a query result into a Category object and collect them in an ArrayList.
4. [Data Access Objects](https://www.ask-codey.com/lessons/mapping-data-to-models-data-access-objects) (Journeyman): A data access object (DAO) is a class that holds the database code for one table, so the rest of your program calls methods like getAllCategories() instead of writing SQL.
5. [Example](https://www.ask-codey.com/lessons/mapping-data-to-models-example) (Journeyman): A CategoriesDao class loads every category from the database into a list, and Main prints each category's name.

Source: https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/mapping-data-to-models
