Overview

Summary

ContactDonateImprint


Appendix E-10: RESERVATION (UI prompt)


ReservationCustomerModuleZeppelinFlight

Properties (6)

PropertyTypeEntityReferenceModule
(1) CustomerINTReservationCustomerCustomerModule
(2) NotesSTRINGReservation
(3) PartySizeINTReservation
(4) ReservationDateTimeDATEReservation
(5) RestaurantINTReservationRestaurantRestaurantModule
(6) StatusSTRINGReservation


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /reservation/{id}updateReservationById(reservation)CustomerModulePUTReservation
(2) /reservationfindAllReservation()CustomerModuleGETReservation
(3) /reservationinsertReservation(reservation)CustomerModulePOSTReservation
(4) /reservation/{id}deleteReservationById(id)CustomerModuleDELETEReservation
(5) /reservation/restaurant/{id}findAllReservationOfRestaurant(id)CustomerModuleGETRestaurant Reservation
(6) /reservation/{id}findReservationById(id)CustomerModuleGETReservation
(7) /reservation/customer/{id}findAllReservationOfCustomer(id)CustomerModuleGETCustomer Reservation





Example:

final Reservation reservation = (Reservation) invokeModule(CUSTOMER_MODULE + "/reservation/" + id, Reservation.class);
if (reservation != null) {
    final Restaurant restaurant1 = (Restaurant) invokeModule(RESTAURANT_MODULE + "/restaurant/" + reservation.getRestaurant().getId(), Restaurant.class);
    if (restaurant1 != null) {
        final Hangar relatedhangar2 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + restaurant1.getRelatedHangar().getId(), Hangar.class);
        if (relatedhangar2 != null) {
            final Location location3 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedhangar2.getLocation().getId(), Location.class);
            if (location3 != null) {
                final Country country4 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location3.getCountry().getId(), Country.class);
                if (country4 != null) {
                }
            }
        }
        final Location location5 = (Location) invokeModule(LOCATION_MODULE + "/location/" + restaurant1.getLocation().getId(), Location.class);
        if (location5 != null) {
            final Country country6 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location5.getCountry().getId(), Country.class);
            if (country6 != null) {
            }
        }
    }
    final Customer customer7 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + reservation.getCustomer().getId(), Customer.class);
    if (customer7 != null) {
        final Country country8 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + customer7.getCountry().getId(), Country.class);
        if (country8 != null) {
        }
    }
}
return reservation;


Overview

Summary

ContactDonateImprint