Association Mappings
The mapping of associations between entity classes and the relationships between tables is the soul of ORM. Following are the four ways in which the cardinality of the relationship between the objects can be expressed. An association mapping can be unidirectional as well as bidirectional.
Sr.No. | Mapping type & Description |
---|---|
1 | Many-to-One
Mapping many-to-one relationship using Hibernate
|
2 | One-to-One
Mapping one-to-one relationship using Hibernate
|
3 | One-to-Many
Mapping one-to-many relationship using Hibernate
|
4 | Many-to-Many
Mapping many-to-many relationship using Hibernate
|
No comments:
Post a Comment