This commit is contained in:
Keith Donald
2008-02-28 00:08:09 +00:00
parent 83569678df
commit 665bf73af5

View File

@@ -190,6 +190,10 @@ public class Booking implements Serializable {
return valid;
}
public static Booking newInstance(Hotel hotel, User user) {
return new Booking(hotel, user);
}
@Override
public String toString() {
return "Booking(" + user + "," + hotel + ")";