• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UB - is checkout needed?

 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I have a question about URLyBird. It requires that we have a "book" method to update the data file. I get that. Now once I book which updates the data file, are we also need to make that record available again like having a checkout method? Cos once I try booking x times, all records will eventually be used assuming not having an interface for create.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my assignment there's nothing said about unbooking a room, so i will not implement it. They can always get a new clean db-file if every record is booked
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are we also need to make that record available again like having a checkout method?


Nope.
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you don't need to do the thing that doesn't required in the assignment.

In my assignment, to unbook a room, just click book and provide empty String as a customer name.

Jeffry Kristianto Yanuar (Java Instructor) SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic