aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes about the UPC(universal product code) of the room in URLyBird Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "about the UPC(universal product code) of the room in URLyBird" Watch "about the UPC(universal product code) of the room in URLyBird" New topic
Author

about the UPC(universal product code) of the room in URLyBird

Ronggen Liu
Ranch Hand

Joined: Jul 29, 2007
Posts: 40
Hi,

when you write the value object Room,the representation of the hotel room, how do you identify the universal product code of it in your URLyBird project?

Thank you!
Ronggen


SCJP 1.4,<br />SCJD Java 2,<br />...
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi Liu,

Is there a UPC in your assignment?
If not: do you really need to make on up yourself?

Tip: don't make the assigment bigger than it is.

Herman
Ronggen Liu
Ranch Hand

Joined: Jul 29, 2007
Posts: 40
Hi Herman,

Thanks, i just want to make the record is unique use UPC. it's not mentioned in my instruction.

-Ronggen
Simon Hogg
Greenhorn

Joined: Jan 29, 2008
Posts: 7
Ronggen,

How will you cope if a hotel has more than one room of the same type available on the same date?

I had a similar idea to you when I first looked at the DB interface, but I realised that even though the interface throws a DuplicateKeyException, the implementation doesn't have to.
If the data doesn't have to be unique, then it makes things easier (no checking code .

Simon
 
 
subject: about the UPC(universal product code) of the room in URLyBird