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
Introduction
- Welcome
- What you should know before watching
- How to use the exercise files
Hibernate Explained
- What is Hibernate
- Let's install Hibernate
- NetBeans setup
Hibernate Example
- Configuration file
- Reverse engineering
- Hibernate mapping file
- Plain old Java object (POJO)
- Java application
Hibernate Explained
- Data persistence
- Sessions explained
- Mapping strategies
CRUD Operations
- Add objects
- Update objects
- Delete objects
Searches and Queries
- Hibernate Query Language (HQL)
- Select clause
- Named parameters
- Aggregate methods
- Criteria query API
Conclusion
- Next steps