What is a one to one function example?



What is a one to one function example?..

Answer / Mrinalini Mishra

In Hibernate, a one-to-one relationship represents an association between two entities where each instance of the first entity is associated with at most one instance of the second entity, and vice versa. For example, consider a Person entity and an Address entity. If every person has exactly one address, and every address belongs to exactly one person, then this is a one-to-one relationship. The mapping can be defined using the @OneToOne annotation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is light object mapping in hibernate?

1 Answers  


What are the Collection types in Hibernate?

1 Answers  


What is the use of evicting method in hibernate?

1 Answers  


What is the use of cache in hibernate?

1 Answers  


Does hibernate support nosql?

1 Answers  


Can we delete foreign key?

1 Answers  


How do we create session factory in hibernate?

1 Answers  


Does hibernate flush commit?

1 Answers  


What is @transactional in hibernate?

1 Answers  


Explain the criteria object in hibernate?

1 Answers  


What is the difference between save() and persist() methods of session object?

1 Answers  


What is formatting in design pattern?

1 Answers  


Categories