What is component mapping in hibernate?



What is component mapping in hibernate?..

Answer / Anil Kumar Singh

Component mapping in Hibernate allows you to map Java classes without using explicit association between them. It's useful for composite objects with no direct relationship between each other. In component mapping, a single table can be mapped by multiple entities.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Which hibernate object wraps the jdbc connection?

1 Answers  


What is the use of @transient annotation?

1 Answers  


When do you use merge() and update() in hibernate?

1 Answers  


What is the role of sessionfactory?

1 Answers  


Which class elements are not persisted?

1 Answers  


What is difference between save and update in hibernate?

1 Answers  


Why is sessionfactory used in hibernate?

1 Answers  


What is l1 and l2 cache in hibernate?

1 Answers  


What is meant by a Named SQL Query in hibernate and how it’s used?

1 Answers  


What are the benefits of ORM?

1 Answers  


What is entity manager in hibernate?

1 Answers  


What is current_session_context_class in hibernate?

1 Answers  


Categories