-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
AD183 - EAP 7.0-en-3-20220331
-
None
-
False
-
-
False
-
-
-
en-US (English)
Please fill in the following information:
| URL: | https://rol.redhat.com/rol/app/courses/ad183-7.0/pages/ch04s03 |
| Reporter RHNID: | wasim-rhls |
| Section Title: | Persisting Data |
Issue description
the snippet in the "find()" section is wrong
@Stateless
public class CustomerServices {
....
public void getCustomer(Customer customer) {
...
Customer customer;
try{
customer = entityManager.find(Customer.class,custId);
if (customer != null)
else }
System.out.print("Not Found");
}
}catch(Exception exception)
}
}
the input param on the method should be "Long custId"
public void getCustomer(Long custId) {
Steps to reproduce:
Workaround:
Expected result: