Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Modeling Data with POJOs 4:26
- What is a POJO? 2 questions
- Create a POJO 1 objective
- Feeding Data to Our Thymeleaf Templates 9:59
- Insert POJO Data into Thymeleaf Template 1 objective
- Create a Data Repository Component 10:07
- Using @PathVariable to Create a Dynamic Detail Page 14:30
- Capture a URI Parameter 1 objective
- Create an Index Page That Presents a List of Data 7:28
- Create an Index Page with Thymeleaf 1 objective

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Modeling each GIF with a POJO is an essential step toward storing all our GIF data. In this video, we'll combine all those GIF objects into a single collection and create one method for accessing those GIF objects from the collection.
Code Block for GIF Data
Copy and paste the code below into your GifRepository
class:
private static final List<Gif> ALL_GIFS = Arrays.asList(
new Gif("android-explosion", LocalDate.of(2015,2,13), "Chris Ramacciotti", false),
new Gif("ben-and-mike", LocalDate.of(2015,10,30), "Ben Jakuben", true),
new Gif("book-dominos", LocalDate.of(2015,9,15), "Craig Dennis", false),
new Gif("compiler-bot", LocalDate.of(2015,2,13), "Ada Lovelace", true),
new Gif("cowboy-coder", LocalDate.of(2015,2,13), "Grace Hopper", false),
new Gif("infinite-andrew", LocalDate.of(2015,8,23), "Marissa Mayer", true)
);
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Page Petty
2,928 Points1 Answer
-
Marvin Deutz
8,349 Points0 Answers
-
Mohamed Mandour
7,783 Points1 Answer
-
Ricardo Sala
16,212 Points1 Answer
-
Robert Goddard
15,019 Points1 Answer
-
Binyamin Friedman
14,615 Points1 Answer
-
Gautham U
1,324 Points0 Answers
-
Mahsheed Eshraghi
1,150 Points1 Answer
-
Test Test
21,581 PointsJava 8 alternative for findByName method (lambdas and streams)
Posted by Test TestTest Test
21,581 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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