According to the Java Persistence API, a managed entity instance X becomes removed by
invoking the remove method on it or when it is a target of a cascaded remove operation. Which
statement is true?
A.
After an entity has been removed its state will be restored to the Java defaults.
B.
If a detached entity Y references Xthe HlegalStateException will be thrown.
C.
If X is a new entity the remove operation is cascaded to entities referenced by X.
D.
A removed entity X will be guaranteed to be removed from the database when the remove
method returns.