File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes id value in B&S 2.3.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "id value in B&S 2.3.1" Watch "id value in B&S 2.3.1" New topic
Author

id value in B&S 2.3.1

pramod karnani
Ranch Hand

Joined: May 22, 2007
Posts: 88
Hi All,

in instructions.html writtent that "The id value (an 8 digit number) of the customer who has booked the record'.

it means customer id must have 8 digit number,it can not be less than 8 digit ,correct?



Regards,
Pramod
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2246

Howdy, Pramod!

Well, I assumed that the customer ID must have 8 digits, and it must be a valid number. For instance, 54824517 or 96418235.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4905
    
  10

Hi pramod,

Because it has to be 8 digit long (I allowed no number less than 8 digits) I used a String to store the customer-id, because else it's quiet hard (requires extra code) to have "12345" (entered as "00012345") as valid customer id. But in the GUI always 8 digits should be entered, otherwise error message is shown.

Kind regards,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
pramod karnani
Ranch Hand

Joined: May 22, 2007
Posts: 88
Thanks Roberto and Roel.


Regards,
Pramod
 
 
subject: id value in B&S 2.3.1
 
Similar Threads
Customer ID: strictly 8 digits?
B&S-How to deal with some magic number?
Booking and database file format
B&S Questions about lock
NX: Home contractor assignment, update()/create(), DuplicateKeyException