1Z0-898 · Question #3
An application wants to utilize side effects of cascading entity manager operations to related entities. Which statement is correct?
The correct answer is C. The persist operation applied to a new entity x is cascaded to entities referenced by x if the. The semantics of the flush operation, applied to an entity X are as follows: *If X is a managed entity, it is synchronized to the database. /For all entities Y referenced by a relationship from X, if the relationship to Y has been annotated with the cascade element value…
Question
An application wants to utilize side effects of cascading entity manager operations to related entities. Which statement is correct?
Options
- AThe persist operation is always cascaded to related entitles for one-to one and one-to-many
- BTo minimize the effect of the remove operation applied to an entity participating in a many-to
- CThe persist operation applied to a new entity x is cascaded to entities referenced by x if the
- DThe remove operation applied to a removed entity x is cascaded to entities referenced by x of the
How the community answered
(48 responses)- A4% (2)
- B8% (4)
- C75% (36)
- D13% (6)
Explanation
The semantics of the flush operation, applied to an entity X are as follows: *If X is a managed entity, it is synchronized to the database. /For all entities Y referenced by a relationship from X, if the relationship to Y has been annotated with the cascade element value cascade=PERSIST or cascade=ALL, the persist operation is relation (answer 1)
Topics
Community Discussion
No community discussion yet for this question.