This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Today, after 2 months, I received the result of my assignment submission.
It says the following:
"Automatic Failure due to the following:
Application does not conform to instructions provided in the assignment. The Instructions state:
It must allow the user to book a selected record, updating the database file accordingly.
[Customer holding this record owner 8 The id value (an 8 digit number) of the customer who has booked this.]
The program doesn't allow user to input customer id. It automatically generates the id as 1000 for all the customers.
In my implementation the old customer ID (CSR ID) is read out from suncertify.properties file. If the properties file does not exist, the default value of 1000 will be provided.
Of course, this value can be always changed in connect dialog. So I really don't understand the assessor comment that customer id can't be set.
I did not found in the instructions explicit requirement about how/when to provide customer id.
I had some doubts about the submission result, because there were some things I did not finished as I wanted to, but because of the due date I had to provide the solution.
Still, I did not expected that I will fail with comments that "my booking is not working, because the user can't input customer id".
Probably I messed up the CSR id and customer id.
When connecting to database CSR id is provided and used as customer id.
For example, CRS John (ID:1111) makes all reservation using id 1111.
So basically all reservations from John will have ID:1111.