
Learn to perform create and read CRUD operations with Hibernate by configuring Hibernate, mapping an employee entity with Java annotations, and using session and sessionFactory to persist and retrieve data.
Learn to perform update and delete operations with Hibernate by updating entities via session.get and setters, using createQuery for updates, and deleting with session.delete or delete queries, then verify results.
Explore one-to-one bidirectional mapping with Hibernate, using mappedBy and join column to link course and course detail, plus cascading and delete behaviors.
Explore how one-to-many unidirectional mapping works in Hibernate, including entity creation, lazy fetch, join column, cascade all, and demo steps to create, map, fetch, and delete topics.
Explore how many-to-many mapping works in Hibernate, using a course–student relationship with a join table. Configure @ManyToMany and @JoinTable, examine fetch and cascade types, and see create/delete demonstrations.
This course is a building block for anyone, who is curious about hibernate and willing to learn the same. In short, if you are new to hibernate, this course will be very useful to you.
Hibernate is a framework that provides the ORM Object to Relational Mapping. A framework for persisting or saving Java objects in a database. Developer has to define mapping between Java class and database table.
Pros:
Hibernate handles all of the low-level SQL
Minimizes the amount of JDBC code you have to develop
Provides the ORM Object to Relational Mapping
Pre-requisites(covered in course) :
1. Java IDE
2. Database Server
3. Hibernate Jar files
4. JDBC Driver
In this series, we will discuss following topics in a detail :
1. MySQL Installation
a: Download MySQL Installer
b: Install MySQL
c: Create Eclipse Project
d: Download Hibernate ORM Jars
e: Download MySQL JDBC Driver Jar
f: Configure MySQL Server
g: Run MySQL Scripts
h: Test JDBC Connection
2. CRUD operations
a : Hibernate configuration
b : Annote Java Class
c : CRUD operation
3. Types of Mappings :
a. One to one Mapping (Unidirectional and Bidirectional)
b. One to many Mapping (Unidirectional and Bidirectional)
c. Many to many Mapping
4. Eager vs Lazy Loading