READ Free Dumps For Oracle- 1z0-898
Question ID 4568 | Given two entities with many-to-many bidirectional association between them: |
Option A | A. @manyToMany on the projects field, |
Option B | B. @manyToMany (mappedBy = emps) on the projects field, @manyToMany on the emps field |
Option C | C. @manyToMany (targetEntity = project.class) on the projects field, @manyToMany (mappedBy = “projects”) on the emps field |
Option D | D. @manyToMany (targetEntity =project.class) on the projects field, @manyToMany on the emps field |
Correct Answer | C |
Question ID 4569 | An application wants to utilize side effects of cascading entity manager operations to related entities. |
Option A | A. The persist operation is always cascaded to related entitles for one-to one and one-to-many relationships. |
Option B | B. To minimize the effect of the remove operation applied to an entity participating in a many-to-many relationship the remove operation should he cascade to entities on both sides of the relationship. |
Option C | C. The persist operation applied to a new entity x is cascaded to entities referenced by x if the relationship from x to these other entities is annotated with the cascade=PERSIST or cascade=ALL annotation element value. |
Option D | D. The remove operation applied to a removed entity x is cascaded to entities referenced by x of the relationship from x to these other entities is annotated with the cascade = REMOVE of |
Correct Answer | C |