Page 1 of 1

About Question enthuware.oce-jpad.v6.2.371 :

Posted: Sat Aug 29, 2015 4:08 pm
by romsky
What this variable 'c' is about in following expression?

System.out.println(c.getStatus());

Did you forget to declare something?

Re: About Question enthuware.oce-jpad.v6.2.371 :

Posted: Sat Aug 29, 2015 8:56 pm
by admin
c should be a reference to a Customer. This line is missing:

Code: Select all

Customer c= em.find(Customer.class, 1234); //retrieves a valid Customer
Added.
thank you for your feedback!