• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

URLyBird Owner field - Booking  RSS feed

Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have a question about booking especially about owner field of the record. In the assignment, there is a statement like that

" Field descriptive name: Customer holding this record
Database field name: owner
Field length: 8
Detailed description: The id value (an 8 digit number) of the customer who has booked this. Note that for that application, you should assume that customers and CSRs know their customer ids. The system you are writing does not interact with these numbers, rather it simply records them. If this field is all blanks, the record is available for sale"

As far as what I understood from that statement, customer id can be anything and during booking process, it should be provided by customers or CSRs. My question is where should I get this information? Should I provide a dialog box for that information or should I put a number randomly generated at the start of the application because there is a sentence in the spec states that "The system you are writing does not interact with these numbers"?

Thanks in advance ...
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Oguz,

I've assumed that that means that the customers know their customer ID. Then when a CSR adds a booking the customer will provide their customer ID (or the CSR already has it, it's irrelevant for this discussion) and the CSR will enter it.

In other words, unbooked rooms should have an empty owner/customer id field. Once the CSR presses a book button or something similar, he or she should be able to enter the 8 digit customer id and your program will have to persist that number to the database.

A small disclaimer, this is how I understood the assignment. Some parts of the assignment are relatively vague so it's hard to come up with a definite answer. That said, as long as you document your doubts and the motivation behind your decision in choices.txt all should be fine.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!