Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Shubh2-0/Hibernate-Mapping

Repository files navigation

🗺️ Hibernate Mapping

GitHub stars GitHub forks

Master ORM Mapping Techniques

One-to-One, One-to-Many, Many-to-Many mappings


🎯 About

Comprehensive examples of Hibernate mapping techniques. Learn how to map complex entity relationships in JPA/Hibernate.

📚 Mapping Types

Type Annotation Example
One-to-One @OneToOne User ↔ Profile
One-to-Many @OneToMany Department → Employees
Many-to-One @ManyToOne Employees → Department
Many-to-Many @ManyToMany Students ↔ Courses

💡 Key Concepts

  • ✅ Unidirectional vs Bidirectional
  • ✅ Cascade operations
  • ✅ Fetch types (LAZY/EAGER)
  • ✅ Join columns & tables
  • ✅ Mapped by attribute

🛠️ Technologies

Hibernate | JPA | MySQL | Maven

📬 Contact

LinkedIn Gmail


Keywords: Hibernate ORM Mapping OneToOne OneToMany ManyToMany JPA Entity-Relationships

About

This GitHub repository contains several projects demonstrating Hibernate mapping techniques. Each project focuses on a specific mapping type and provides a clear example of its implementation. Explore the projects to learn and apply Hibernate mappings in your own projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages