Name: Divisha Mishra GitHub: https://github.com/divishamishra533code
Hibernate CRUD Operations
This project demonstrates the implementation of basic CRUD (Create, Read, Update, Delete) operations using the Hibernate ORM framework in Java. It highlights how Hibernate simplifies database interactions by mapping Java objects to relational database tables.
- Java
- Hibernate ORM
- Maven
- MySQL (or any relational database)
- IntelliJ IDEA
- Insert new records into the database
- Retrieve and display existing records
- Update records
- Delete records
- Hibernate configuration using
hibernate.cfg.xml - Dependency management using Maven
hibernate-crude/
│── src/
│ └── main/
│ └── java/
│ └── org/example/
│ ├── Main.java
│ ├── Product.java
│
│── pom.xml
│── .gitignore
- Clone the repository:
git clone https://github.com/divishamishra533code/Git-hub-lab-2.git
-
Open the project in IntelliJ IDEA
-
Configure database settings in
hibernate.cfg.xml -
Build the project using Maven
-
Run
Main.java
- Record inserted successfully
- Data retrieved from the database
- Record updated successfully
- Record deleted successfully
- Understanding of Hibernate ORM framework
- Performing database operations using Java
- Maven-based project structure
- Object-relational mapping concepts
This project provides a foundational understanding of Hibernate and demonstrates how it can be used to efficiently perform database operations in Java-based applications.
This project was developed for academic and learning purposes.