Here is my take, everyone has correct ideas for there needing to be a Duplicate key exception being thrown in update by the nature of the new assignments. However, this is correct in the real world. But you would also in the real world make an update method not allowed to change the Primary Key, so therefore in the real world you would not need the duplicate key exception because of the constraints.
This document deliberately leaves some issues unspecified, and some problems unraised. Your ability to think through these issues, in the face of realistically imperfect specifications, and come to a tenable solution is something upon which you are being graded.
Thrown to indicate that a method has been passed an illegal or inappropriate argument.
I am sorry if this sounds short, it is not meant to be.
The designers of the assignment are very smart, they wouldn't put a problem like this in the assignment and not analyze it or change it if it was wrong to them.
This document deliberately leaves some issues unspecified, and some problems unraised. Your ability to think through these issues, in the face of realistically imperfect specifications, and come to a tenable solution is something upon which you are being graded.
The most important parts of the assignment are ease of reading, a junior programmer can maintain it, and following directions.
The assignment specifically has you only book the record which means the field you want to update is not part of the primary key.
"I'm not back." - Bill Harding, Twister
I believe Sun is intentionally simulating customers who are not as smart as the assignment creators themselves.
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Just let me do the talking. Ahem ... so ... you see ... we have this tiny ad...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|