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 entityitbecomes managed.

B.
If X isanew entity it willberemoved fromthe database.

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

D.
IfX isadetached entity an HlegalArgumentExceptionwillbethrown.



Leave a Reply 0

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