This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
My assignment is URLyBird. Customers can enquire of there is a room in a hotel an then book a room. The interface specifies I must lock a record before updating it. Booking is an update so I must lock. Only thing is most customer just want a room and not that specific room locked by somebody else booking it. If a hotel has 3 spaces then if room one is locked I want to try room 2 and not wait until the first room is unlocked (and properbly booked/deleted). The issue also affects my UI. Can I display that a hotel has 3 rooms available or must I display 3 separate rooms?
I am thinking at building a islocked and if the answer is no then lock it. Bad luck for the customer then but that is what is demanded in the exam. Good approach or am I woring to much?
You are definately worrying too much . What you are suggesting, while nice in the real world, is beyond the requirements of the assignment. When in doubt, go back to your instructions and re-read the following:
You will not receive extra credit points for work beyond the requirements of the specification.
(In other words, if you implement something that is "nice to have", you cannot get any extra marks for it, but you can loose marks if you make a mistake in your extra work.