Which statement is correct?
A.
The method will return TRUE.
B.
The method will return FALSE.
C.
The method will throw an exception.
D.
The order instance will be removed from the database.
Which statement is correct?
A.
The method will return TRUE.
B.
The method will return FALSE.
C.
The method will throw an exception.
D.
The order instance will be removed from the database.
Merge the state of the given entity into the current persistence context.
Parameters:
entity – entity instance
Returns:
the managed instance that the state was merged to
Throws:
IllegalArgumentException – if instance is not an entity or is a removed entity
TransactionRequiredException – if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction
so answer is C
C ,
If x is remove entity than merge method will throw IllegalArgumentException.
C ,
If x is removed entity than merge method will throw IllegalArgumentException.