Define cascade and inverse option in one-many mapping?
Submitted by: Administratorcascade - enable operations to cascade to child entities.
cascade=”all|none|save-update|delete|all-delete-orphan”
inverse - mark this collection as the “inverse” end of a bidirectional association.
inverse=”true|false”
Essentially “inverse” indicates which end of a relationship should be ignored, so when persisting a parent who has a collection of children, should you ask the parent for its list of children, or ask the children who the parents are?
Submitted by: Administrator
cascade=”all|none|save-update|delete|all-delete-orphan”
inverse - mark this collection as the “inverse” end of a bidirectional association.
inverse=”true|false”
Essentially “inverse” indicates which end of a relationship should be ignored, so when persisting a parent who has a collection of children, should you ask the parent for its list of children, or ask the children who the parents are?
Submitted by: Administrator
Read Online Hibernate Job Interview Questions And Answers
Top Hibernate Questions
☺ | How does Hibernate distinguish between transient (i.e. newly instantiated) and detached objects? |
☺ | What is HQL? |
☺ | Why do you need ORM tools like hibernate? |
☺ | What does ORM consists of? |
☺ | What are the general considerations or best practices for defining your Hibernate persistent classes? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |