Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Intro to Hibernate 2:17
- Hibernate Sessions 2 questions
- Configuring a Project to Use Hibernate 6:34
- Create a Hibernate Configuration File 2 objectives
- Adding a POJO with JPA Annotations 9:34
- Adding JPA Annotations to an Entity 2 objectives
- Building a Hibernate SessionFactory 4:41
- The Builder Design Pattern 8:46
- The Builder Design Pattern 1 question
- Using the Builder Pattern 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
One of the biggest advantages of using an ORM such as Hibernate is the ability to quickly configure model POJOs for mapping to database tables and columns. You will use JPA (Java Persistence API) annotations to define these mappings.
Package Name Update
Please notice while following along that there is no longer a javax
package. It has since been renamed and you should instead see jakarta
as an option. IntelliJ should still find this and automatically import it for you as shown in the video.
import jakarta.persistence.*
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Adrian Grabowski
2,622 Points1 Answer
-
Benyam Ephrem
16,505 Points2 Answers
-
Jose Patria
1,600 Points2 Answers
-
Alexey Papin
iOS Development Techdegree Graduate 26,950 Points2 Answers
-
shekhar bhardwaj
Full Stack JavaScript Techdegree Student 12,373 PointsException in thread "main" org.hibernate.MappingException: Unknown entity: com.contact.model.Contact
1 Answer
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