Which scenario can cause the exception?

The execution of the find method in the following code throws an exception:
11. em.find(Customer.class, custld);

12. //Where em is a reference to a extended scoped entity manager.
Which scenario can cause the exception?

The execution of the find method in the following code throws an exception:
11. em.find(Customer.class, custld);

12. //Where em is a reference to a extended scoped entity manager.
Which scenario can cause the exception?

A.
Thefindmethod was called without a transaction.

B.
Theentity corresponding to therequestedprimary key has been removed.

C.
The entity corresponding to therequestedprimarykeyhas beendetached.

D.
The data type of custld is NOT a valid type fortheCustomer entity primary key.



Leave a Reply 0

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