Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Spring Basics!
You have completed Spring Basics!
Preview
In this video, you are tasked with creating a model for a `Category` object.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
What we'd like to do is add the ability
to assign each GIF object to a category.
0:00
Then, we can create a list of these
categories that will be displayed by
0:01
clicking on the categories
link in the navigation menu.
0:05
Upon clicking on each category,
0:09
we'll see a page containing all the GIFs
that are part of that category.
0:11
So, first things first.
0:15
We need a category model.
0:17
The category model will be a POJO
that contains an integer ID field,
0:19
as well as a string name field.
0:23
We'll also need getters and setters for
those, and a constructor too.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up