Using Hibernate to manage relational data in a Spring web application is not only an extremely powerful and scalable approach, but also widely used. In this course, we'll add a database to an animated GIF library, and discuss some more powerful features of Spring and Thymeleaf, such as HTML forms, file uploading, form validation, and flash messaging.
As a first step toward using Hibernate in a Spring application, we first discuss how to configure a Spring app to include Hibernate for data management. We'll add the necessary dependencies and configuration code so that a Hibernate SessionFactory can be autowired into Spring components and used to fetch data from the database.
Chevron 12 steps1:26
1:53
4:55
5 questions
3:03
17:34
1 question
9:00
1 question
2 objectives
6:17
3 objectives
During this stage, we discuss the service-DAO software design pattern. By creating loosely-coupled components as separate layers in our applications, we can increase the maintainability, extensibility, reusability, and testability of our code.
Chevron 9 steps3:56
2 questions
1:46
5:26
1 objective
3:32
2:40
2 objectives
5:08
With our service-DAO design pattern intact, it's time to tackle the various operations of Giflib. In this stage, we implement a post-redirect-get pattern in Spring and discuss the use of forms in Thymeleaf.
Chevron 6 steps5:33
2:44
3 objectives
3:29
11:44
2 objectives
In this stage we discuss the use of two kinds of messages to keep users informed: form validation messages and flash messages. For both of these we'll leverage Spring's RedirectAttributes in order for these messages to survive a redirect.
Chevron 9 steps1:05
2:22
6:08
2 questions
5:52
2 questions
7:20
3:43
3:48
In this final stage of the course, we discuss how to allow users the ability to upload files with HTML, as well as how to process those file uploads with Spring. In addition, we take the forms for adding categories and GIFs and make them reusable for updating each of those entities.
Chevron 14 steps8:55
1 question
6:46
4:47
7:42
2 questions
7:58
10:19
1 question
4:18
14:15
2:02
4:31
0:42
As a first step toward using Hibernate in a Spring application, we first discuss how to configure a Spring app to include Hibernate for data management. We'll add the necessary dependencies and configuration code so that a Hibernate SessionFactory can be autowired into Spring components and used to fetch data from the database.
Chevron 12 steps1:26
1:53
4:55
5 questions
3:03
17:34
1 question
9:00
1 question
2 objectives
6:17
3 objectives
During this stage, we discuss the service-DAO software design pattern. By creating loosely-coupled components as separate layers in our applications, we can increase the maintainability, extensibility, reusability, and testability of our code.
Chevron 9 steps3:56
2 questions
1:46
5:26
1 objective
3:32
2:40
2 objectives
5:08
With our service-DAO design pattern intact, it's time to tackle the various operations of Giflib. In this stage, we implement a post-redirect-get pattern in Spring and discuss the use of forms in Thymeleaf.
Chevron 6 steps5:33
2:44
3 objectives
3:29
11:44
2 objectives
In this stage we discuss the use of two kinds of messages to keep users informed: form validation messages and flash messages. For both of these we'll leverage Spring's RedirectAttributes in order for these messages to survive a redirect.
Chevron 9 steps1:05
2:22
6:08
2 questions
5:52
2 questions
7:20
3:43
3:48
In this final stage of the course, we discuss how to allow users the ability to upload files with HTML, as well as how to process those file uploads with Spring. In addition, we take the forms for adding categories and GIFs and make them reusable for updating each of those entities.
Chevron 14 steps8:55
1 question
6:46
4:47
7:42
2 questions
7:58
10:19
1 question
4:18
14:15
2:02
4:31
0:42