Skip to content

hareeshramineni/Hibernate

 
 

Repository files navigation

Hibernate


This repository contains demos related to Hibernate.

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

Pre-Requisite


Demos have been created with the help of JDK 17, Hibernate 6 and MySQL. So ideally your machine should have JDK 17 installed, but they can be executed with other versions of Java as well with a little tweaking. Also ideally your machine should have MySQL Community Server and Workbench installed, but you can use any other relational database as well by changing database connections in code. Also, you should be clear with Java Basics, Collections Framework, Java 8 features and JDBC so that you can understand the flow of code.

Steps to Execute


Download the demos and import them into your favorite IDE as a Java Project. Ensure that MySQL Server is up and running. If you are a fresher then I recommend to execute demos in same order as provided and if you an expert then you can execute demos as required.

YouTube Tutorial


Demos have been explained in an easy way on my YouTube channel Abhishek Verma. Link for the video is Hibernate.

Connect with me


abhishekvermaa10 abhishekvermaa10 abhishekvermaa10

Languages and Tools


java mysql hibernate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%