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 |
What is light object mapping in hibernate?
What are the Collection types in Hibernate?
What is the use of evicting method in hibernate?
What is the use of cache in hibernate?
Does hibernate support nosql?
Can we delete foreign key?
How do we create session factory in hibernate?
Does hibernate flush commit?
What is @transactional in hibernate?
Explain the criteria object in hibernate?
What is the difference between save() and persist() methods of session object?
What is formatting in design pattern?