What is mappedby in hibernate?



What is mappedby in hibernate?..

Answer / Upendra Kumar Awasthi

The mappedBy attribute in Hibernate is used when defining a relationship between two entities. It indicates that the foreign key for the relationship should be defined in the inverse side of the relationship, instead of the current entity.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is difference between sorted collection and ordered collection, which one is better?

1 Answers  


What is hibernate search?

1 Answers  


What is the benefit of hibernate?

1 Answers  


What is an example of a one to many relationship?

1 Answers  


What are callback interfaces in hibernate?

1 Answers  


What are the important benefits of using Hibernate Framework?

1 Answers  


What is transaction management in hibernate?

1 Answers  


What is session merge in hibernate?

1 Answers  


What is composite key in hibernate?

1 Answers  


What is discriminator in hibernate?

1 Answers  


What is hibernate configuration file?

1 Answers  


What is dirty checking in hibernate?

1 Answers  


Categories