In this video, I have demonstrated a simple way to map java to MySQL using Hibernate.
Use of Hibernate:
Hibernate maps Java classes to database tables and from Java data types to SQL data types and relieves the developer from most common data persistence-related programming tasks.
Dependencies:
-https://mvnrepository.com/artifact/my...
-https://mvnrepository.com/artifact/or...
Chapters:
00:00 Create Maven Project
01:40 Add Hibernate dependencies
02:32 Create Hibernate config file
04:40 Create a schema for MySQL
05:30 Create Pojo class
07:00 Create a table on MySQL
08:30 Set up the configuration to connect to the database
12:20 Set up session to add data to the table
15:45 Map POJO class
19:00 Add Entity to the POJO class
Any recommendations to make a video then please leave a comment. I will try my best to upload them in a simpler way.
-Anish