Skip to content

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.

Notifications You must be signed in to change notification settings

Shubh2-0/Hibernate-Mapping

Repository files navigation

Hibernate Mapping Projects

Hibernate Logo

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. The following projects are included:

Embeddable 💼

The Embeddable project showcases the usage of the @Embeddable annotation in Hibernate. It demonstrates how to embed a class within an entity, allowing for a more structured and reusable data model. This is particularly useful when you have a set of properties that are commonly used in multiple entities.

image

Many-To-Many Bidirectional 🔄🔄

The Many_To_Many_Bidirectional project illustrates the bidirectional many-to-many mapping in Hibernate. It presents a scenario where multiple instances of one entity can be associated with multiple instances of another entity. This type of mapping is often used when you have a relationship where entities from both sides can have multiple related entities.

One-To-Many Bidirectional 🔄👥

The One_To_Many_Bidirectional project exemplifies the bidirectional one-to-many mapping in Hibernate. It demonstrates a scenario where a single entity is associated with multiple instances of another entity, and the association can be navigated from both ends. This type of mapping is useful when you have a hierarchical relationship between entities.

One-To-Many Unidirectional ➡️👥

The One_To_Many_Unidirectional project demonstrates the unidirectional one-to-many mapping in Hibernate. It showcases a scenario where a single entity is associated with multiple instances of another entity, but the association can only be navigated from one end. This type of mapping is useful when you don't need to navigate the relationship from the "many" side.

One-To-One Bidirectional 🔄🤝

The One_To_One_Bidirectional project presents the bidirectional one-to-one mapping in Hibernate. It illustrates a scenario where two entities have a one-to-one relationship, and the association can be navigated from both sides. This type of mapping is useful when you have a strict one-to-one relationship between entities.

One-To-One Unidirectional ➡️🤝

The One_To_One_Unidirectional project showcases the unidirectional one-to-one mapping in Hibernate. It provides an example where two entities have a one-to-one relationship, but the association can only be navigated from one side. This type of mapping is useful when you don't need to navigate the relationship from the "one" side.

Feel free to explore each project individually to understand the different Hibernate mapping techniques and how they can be applied in your own projects.

📬 Contact

If you want to contact me, you can reach me through below handles.

linkedinmail-mewhatsapp-me


💓Happy coding!💻

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

No packages published

Languages