Wrap-Up1:07 with Chris Ramacciotti
After three stages of work with databases and Hibernate as an ORM, you are ready to check out more advanced features of Hibernate, and even integrating it into web applications.
To see the complete solution, including the deletion of entities, go to Application.java on the Github repo, or if you're using Git with the provided repo you can update your local code to see the final solution:
git checkout -f final
Note: this will overwrite any changes you've made on your machine, so proceed with caution!
- Spring with Hibernate - Treehouse course
- Collection mapping
- Entity associations
- Transactions and Concurrency Control
Using Github With This Course
You can complete this course entirely using code created by you on your local machine. However, if you choose to use the code I've made available to you, you have two options:
- Use the project files linked at the bottom of this page, or
- Use the Github repository I've made available (recommended)
If you choose the recommended option of using the Github repository, it can be found at
To utilize Github with this course, you can download the Github desktop client for your system or use the command line interface provided with Git.
Clone this repository to your machine using the Github desktop client, or using the following command:
git clone email@example.com:treehouse/contactmgr-hibernate.git
To update your local repository to match a video's starting point, you can use the
git checkout ... command in combination with the stage and video number. For example, to update your local repository to match the starting point of Stage 5, Video 4, you'd use the following:
git checkout -f s5v4
Notice the use of the -f option. This forces Git to override all local changes, so be aware: this will cause any changes you made to be lost.
Well, look at you, all savvy with the Java ORM. 0:00 We've covered quite a bit since the beginning of this course, 0:04 from SQL to JDBC. 0:07 And from writing our own mini-ORM to learning the basics of Hibernate. 0:08 That said, there is so 0:13 much more to the Hibernate story than what we've discussed here. 0:15 At some point, if you're using Hibernate, 0:19 you'll want to map a collection of data to a class. 0:21 For example, you might want to add groups to your contact manager. 0:24 And in doing so, 0:27 you wanna easily retrieve all contacts associated with the group using Hibernate. 0:28 This is called collection mapping. 0:33 Or, you may wanna integrate Hibernate into a web application 0:36 using a framework like Spring. 0:39 Certainly, there's plenty more to explore with Hibernate. 0:42 Check the teacher's notes on where to go from here. 0:45 That said, our time here has come to a close. 0:48 As you're working through our examples here, and 0:51 even on your own projects, which I do encourage you to do. 0:54 Be sure to hit up the forum with any technical questions or 0:57 roadblocks you encounter. 1:00 So, go ahead. 1:02 Play around with Hibernate and see what you think. 1:03 Happy coding. 1:05
You need to sign up for Treehouse in order to download course files.Sign up