Which statement is true when the remove method is invoked on an entity X?

The Java Persistence API defines the semantics of the remove operation and the entity lifecycle
states. Which statement is true when the remove method is invoked on an entity X?

The Java Persistence API defines the semantics of the remove operation and the entity lifecycle
states. Which statement is true when the remove method is invoked on an entity X?

A.
If X is a removed entity it becomes managed.

B.
If X is a new entity it will be removed from the database.

C.
The remove method is always cascaded to related entities.

D.
If X is a detached entity an lllegalArgumentException will be thrown.



Leave a Reply 0

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