• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reason of lock/unlock only 1 record?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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?
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jan,

Welcome to JavaRanch and this forum.

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.

Regards, Andrew
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic