Overview

Summary

ContactDonateImprint


Appendix E-5: RESTAURANT (UI prompt)


RestaurantRestaurantModuleZeppelinFlight

Properties (5)

PropertyTypeEntityReferenceModule
(1) DescriptionSTRINGRestaurant
(2) LocationINTRestaurantLocationLocationModule
(3) NameSTRINGRestaurant
(4) RelatedHangarINTRestaurantHangarLocationModule
(5) WebsiteSTRINGRestaurant


Module Interfaces (9)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /reservation/restaurant/{id}findAllReservationOfRestaurant(id)CustomerModuleGETRestaurant Reservation
(2) /restauranttable/restaurant/{id}findAllRestaurantTableOfRestaurant(id)RestaurantModuleGETRestaurant RestaurantTable
(3) /restaurant/{id}deleteRestaurantById(id)RestaurantModuleDELETERestaurant
(4) /restaurantinsertRestaurant(restaurant)RestaurantModulePOSTRestaurant
(5) /restaurant/{id}updateRestaurantById(restaurant)RestaurantModulePUTRestaurant
(6) /restaurant/location/{id}findAllRestaurantOfLocation(id)RestaurantModuleGETLocation Restaurant
(7) /restaurant/relatedhangar/{id}findAllRestaurantOfRelatedHangar(id)RestaurantModuleGETHangar Restaurant
(8) /restaurantfindAllRestaurant()RestaurantModuleGETRestaurant
(9) /restaurant/{id}findRestaurantById(id)RestaurantModuleGETRestaurant





Example:

final Restaurant restaurant = (Restaurant) invokeModule(RESTAURANT_MODULE + "/restaurant/" + id, Restaurant.class);
if (restaurant != null) {
    final Hangar relatedhangar1 = (Hangar) invokeModule(LOCATION_MODULE + "/hangar/" + restaurant.getRelatedHangar().getId(), Hangar.class);
    if (relatedhangar1 != null) {
        final Location location2 = (Location) invokeModule(LOCATION_MODULE + "/location/" + relatedhangar1.getLocation().getId(), Location.class);
        if (location2 != null) {
            final Country country3 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location2.getCountry().getId(), Country.class);
            if (country3 != null) {
            }
        }
    }
    final Location location4 = (Location) invokeModule(LOCATION_MODULE + "/location/" + restaurant.getLocation().getId(), Location.class);
    if (location4 != null) {
        final Country country5 = (Country) invokeModule(COUNTRY_MODULE + "/country/" + location4.getCountry().getId(), Country.class);
        if (country5 != null) {
        }
    }
}
return restaurant;


Overview

Summary

ContactDonateImprint