Javatpoint Logo

91-9990449935

 0120-4256464

Javatpoint Logo

Bidirectional Association

Bidirectional association allows us to fetch details of dependent object from both side. In such case, we have the reference of two classes in each other.

Let's take an example of Employee and Address, if Employee class has-a reference of Address and Address has a reference of Employee. Additionally, you have applied one-to-one or one-to-many relationship for the classes in mapping file as well, it is known as bidirectional association.

Visit our one-to-one and one-to-many mapping pages to learn about it.

Next TopicLazy Collection




Share this page

facebook twitter google plus pinterest tumbler

Latest 4 Tutorials