Hibernate - Use of mappedBy, Creating Bidirectional mapping
Hibernate have the many annotation to create the relationships between different entities like @OneToOne, @OneToMany, @ManyToOne etc. These annotation takes mappedBy parameter which is used to create the bidirectional mapping. In the bidirectional mapping, parent can retrieve the child and child can retrieve the parent.