nerdexam
Oracle

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…

EntityManager Operations

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)
  • A
    4% (2)
  • B
    8% (4)
  • C
    75% (36)
  • D
    13% (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

#cascade operations#persist#remove#entity relationships

Community Discussion

No community discussion yet for this question.

Full 1Z0-898 Practice