Java Database Access with Hibernate
1h 29mIntermediate2017-02-10
Authors

Peggy Fisher
Programmer, Content Manager at LinkedIn Learning
Course details
Working with both object-oriented software and relational databases can be time consuming. Due to a paradigm mismatch between how data is represented in objects (which are usually nonscalar values) versus relational databases (where scalar values are organized in tables) development costs are significantly higher. When you have to deal with object and relational models that don't play well together, the Hibernate ORM (object-relational mapping) solution for Java environments can help to provide persistent data that you can store and retrieve at a later time. Unlike Enterprise JavaBeans, this framework provides good persistence capabilities by simplifying the task of database operations in Java, allowing you to concentrate on enforcing business application logic instead of having to worry about table relationships and data integrity rules. Join staff instructor and Java expert Peggy Fisher as she explores how Hibernate works, as well as how to install, set up, and use this framework.
Learning objectives
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
Learning objectives
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
Skills covered
JavaOracleProgramming LanguagesSoftware Development
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know before watching
- 03 - How to use the exercise files
1. Hibernate Explained
- 04 - What is Hibernate
- 05 - Let's install Hibernate
- 06 - NetBeans setup
2. Hibernate Example
- 07 - Configuration file
- 08 - Reverse engineering
- 09 - Hibernate mapping file
- 10 - Plain old Java object (POJO)
- 11 - Java application
3. Hibernate Explained
- 12 - Data persistence
- 13 - Sessions explained
- 14 - Mapping strategies
4. CRUD Operations
- 15 - Add objects
- 16 - Update objects
- 17 - Delete objects
5. Searches and Queries
- 18 - Hibernate Query Language (HQL)
- 19 - Select clause
- 20 - Named parameters
- 21 - Aggregate methods
- 22 - Criteria query API
Conclusion
- 23 - Next steps
Related courses
- Java Persistence with JPA
- Java Persistence API (JPA): 1 The Basics
- Java Concurrency Troubleshooting: Data Access and Consistency
- Building Role-Based Access using AI for Java Developers
- Android Development Essential Training: Manage Data with Kotlin
- Learning JDBC (2019)
- Learning JDBC
- Using MongoDB with Java
Related learn paths
- Become a Java Programmer
- Become a Spring Developer
- Getting Started In Spring Development
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- Get Started with PHP
- Explore a Career in Data Engineering
- Advance Your Skills in the Hadoop/NoSQL Data Science Stack
- Prepare for the Google Associate Android Developer Certification