Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Interview Questions and Answers for 'Associations' - 6 question(s) found - Order By Newest | ||||
| ||||
| Ans. import static java.lang.System.*; | ||||
| ||||
| Ans. There are 4 types of associations in Hibernate One to One One to Many Many to One Many to Many | ||||
| ||||
| Ans. Instead of Saving Parent as well as Child Entities individually , Hibernate provides the option to persist / delete the related entities when the Parent is persisted. | ||||
| ||||
| Ans. OneToOne | ||||
| ||||
| Ans. Composition and Inheritance are the different types of Associations for Classes. Composition is a has-a association between classes. Inheritance is a is-a association between classes. | ||||
| ||||
| Ans. table per hierarchy table per concrete class table per sub class | ||||