
Explore how Hibernate enables Java developers to map objects to relational tables using object-relational mapping, delivering lazy loading, caching, and robust transactions with extensible features.
Install the latest JDK and PostgreSQL, then set up Eclipse and Maven to manage Hibernate dependencies; let Hibernate handle database interactions while you learn basic queries.
Map a persistent class to a database table using Hibernate's mapping file, including id, columns, and generator settings, while managing dependencies with Maven and an optional properties file.
Explore generator classes in Hibernate, including assigned, sequence, and increment strategies, and learn how annotations and database sequences create identifiers automatically.
Learn how the main method calls Tao class methods to create, read, update, and delete, while implementing a single session factory for efficient, human-readable employee display.
Detach a persistent object from a Hibernate session to create a detached object whose changes won't persist after the session closes; re-saving creates a persistent instance with a new identifier.
Learn how Hibernate session operations fetch records, convert them to persistent objects, and manage transitions to detached and transient states using get, merge, update, delete, and save or update.
Map a one-to-many relation in hibernate from a boss to its employees using a one-to-many mapping with a join column and a set of employees.
Learn orphaned removal in Hibernate by using cascade all and orphanRemoval true; removing an employee from a boss's list deletes that employee from the database.
Explore how to map a component with Hibernate using embeddable types, embedding address fields into the boss table instead of creating a separate address table.
Hibernate is the most popular ORM tool for enterprise Java Applications. In this course you will Learn the core concepts of Hibernate ORM Framework
With hibernate, you will know how to map some of the OOP notions like inheritance, polymorphism, composition, Java collections etc, with Relational Database tables.
You will learn some interesting core concepts of Hibernate, like Lazy loading, caching, fetching strategies, optimistic locking, connection pooling, seconds level cache etc.
You will learn how to do reverse engineering so that you can generate POJO entities from an existing database.
And many more interesting concepts
Downloadable examples in each chapter