Which statement is correct?

An application wants to utilize sidE. effects of cascading entity-manager operations to related
entities. Which statement is correct?

An application wants to utilize sidE. effects of cascading entity-manager operations to related
entities. Which statement is correct?

A.
The persist operation is always cascaded to related entities for onE. to-one and onE. to-many
relationships

B.
To minimize the effect of the remove operation applied to an entity participating in a many-tomany relationship the remove operation should be cascaded to entities on both sides of the
relationship.

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.

D.
The remove operation applied to a removed entity X is cascaded to entities referenced by X if
the relationship from X to these other entities is annotated with the cascade=REMOVE or
cascade=ALL annotation element value.



Leave a Reply 0

Your email address will not be published. Required fields are marked *