Skip to content

This project demonstrates a basic setup for Hibernate with MySQL and how to use Hibernate annotations to map Java objects to database tables.

Notifications You must be signed in to change notification settings

VaishnaviSh14/Hibernate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Hibernate

A simple Java application demonstrating the usage of Hibernate with MySQL to interact with a database.

Project Overview

This is a Java application that demonstrates how to use Hibernate, a popular Object-Relational Mapping (ORM) framework, to interact with a MySQL database. In this project, I created a simple Student entity class and used Hibernate annotations to map it to a corresponding database table. We perform basic CRUD operations (Create, Read, Update, Delete) on the Student entity using Hibernate.

hibernate.cfg.xml

It is the Hibernate configuration file where you specify the database connection details, dialect, and other Hibernate-related properties.

com.mysql.jdbc.Driver YourDatabasePassword jdbc:mysql://localhost/demo root

Images

image image

About

This project demonstrates a basic setup for Hibernate with MySQL and how to use Hibernate annotations to map Java objects to database tables.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published