I recommend using a hands-on approach to learning, so make sure you download a copy of the exercise files folder to your desktop so you can follow along as we explore Hibernate. Let me show you how these files are set up.
- [Instructor] Whenever you're learning a new technology, I strongly recommend using a hands-on approach to learning, so make sure you download a copy of the Exercise Files folder to your desktop so you can follow along as we explore this Hibernate framework. Let me show you how these files are set up. I have them here in a folder on my desktop called Exercise Files. If I open that folder, you'll see that each chapter that has Exercise Files has its own folder. And inside that folder there is another folder for each section that contains an Exercise File.
Some of them folders will contain a single file, such as 02_01, which has a Hibernate configuration file. If I go back, if I go to 02_05, notice there's another folder called HelloWorldExample. This is actually a NetBeans project folder, so all of the files and folders that you need to input this directly into NetBeans will be there. So, make sure you take a few minutes to download the Exercise Files folder before we get started.
- Installing Hibernate
- Adding a database connection for a project in NetBeans
- Setting up the configuration file
- Reverse engineering to discover object details
- Mapping the database to Java objects
- Saving, updating, and deleting an object
- Retrieving objects
- Using the CriteriaQuery
- Using HQL and native SQL queries
- Using aggregate methods in HQL