Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Configuring a project to use Hibernate involves a couple simple steps. In this lesson, you will see how to add the Hibernate dependency to your Gradle build file and include a Hibernate configuration file in XML format.
Starting This Project
We recommend downloading the Project Files in the "Downloads" Tab and following along with hibernate-basics/2024/start/
in IntelliJ.
If you want to create your own project from scratch, be sure to use these implementations in your build.gradle
dependencies instead of what's shown in the video.
implementation 'org.hibernate:hibernate-core:6.5.2.Final'
implementation 'com.h2database:h2:2.2.224'
implementation 'javax.transaction:jta:1.1'
Gradle Primer
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
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