Skip to content

abhishekvermaa10/Hibernate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hibernate

Welcome to the Hibernate repository! This repository provides hands-on demos covering everything from basic CRUD operations to advanced concepts like mappings, HQL, transaction management, and caching helping you build efficient and scalable database applications.


📌 Table of Contents

  1. CRUD operations using JDBC
  2. Configuring Hibernate
  3. CRUD operations using Hibernate
  4. Primary Key using AUTO strategy
  5. Primary Key using IDENTITY strategy
  6. Primary Key using UUID strategy
  7. Composite Primary Key
  8. Natural Id
  9. One-to-One Mapping
  10. One-to-One Bidirectional Mapping
  11. Eager Loading vs Lazy Loading
  12. One-to-Many Mapping and Many-to-One Mapping
  13. Many-to-Many Mapping
  14. Single Table Inheritance
  15. Joined Inheritance
  16. Table Per Class Inheritance
  17. MappedSuperClass
  18. Introduction to HQL
  19. Solution to N+1 Problem
  20. Complex Queries with HQL
  21. Hibernate Criteria API
  22. Hibernate Entity Lifecycle
  23. Primary Cache
  24. Secondary Cache
  25. Configuring JPA
  26. CRUD operations using JPA

⚙️ Prerequisites

These demos have been built using JDK 17, Hibernate 6. While it is recommended to have JDK 17 installed, the examples can be adapted to other Java versions with minimal modifications.

The database used in these examples is MySQL, but the code can be adjusted to work with other databases if needed.

Before diving into Hibernate, ensure you're comfortable with the following concepts:

You can learn these topics from my YouTube channel through dedicated playlists.


🚀 How to Run the Demos

Follow these steps to set up and execute the demos:

  1. Clone the repository.
  2. Import the project into your preferred IDE as a Maven Project.
  3. Configure the database connection, if necessary.
  4. Run the application and test the methods.

If you're a beginner, it's best to execute the demos in the given order to build your understanding progressively. If you're experienced, feel free to explore specific demos based on your needs.


🎥 YouTube Tutorial

These demos are explained in detail on my YouTube channel Abhishek Verma. Watch the complete playlist here: Hibernate.

🚀 Stay healthy, keep learning, and keep growing!


🌐 Connect with me


🛠️ Languages & Frameworks


🖥️ Software & Tools


Copyright © Abhishek Verma - All Rights Reserved

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages