Table of content



3.6. LuggageService


Entity-Relationship-Model of LuggageService

Schema Entities

Entity NameAlias NameMicroserviceData Schema
EmployeeEmployeeEmployeeServiceAirportLogistics
LuggageLuggageLuggageServiceAirportLogistics
LuggageCheckLuggageCheckLuggageServiceAirportLogistics
LuggageTypeLuggageTypeLuggageServiceAirportLogistics
PassengerBookingPassengerBookingPassengerBookingServiceAirportLogistics

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/luggagetype/{id}GETfindLuggageTypeById(id)LuggageServiceLuggageType
/luggagecheckPOSTinsertLuggageCheck(luggagecheck)LuggageServiceLuggageCheck
/luggagetypePOSTinsertLuggageType(luggagetype)LuggageServiceLuggageType
/luggagecheckGETfindAllLuggageCheck()LuggageServiceLuggageCheck
/luggage/{id}DELETEdeleteLuggageById(id)LuggageServiceLuggage
/luggagecheck/luggage/{id}GETfindAllLuggageCheckOfLuggage(id)LuggageServiceLuggage LuggageCheck
/luggage/{id}GETfindLuggageById(id)LuggageServiceLuggage
/luggagecheck/{id}DELETEdeleteLuggageCheckById(id)LuggageServiceLuggageCheck
/luggagetype/{id}DELETEdeleteLuggageTypeById(id)LuggageServiceLuggageType
/luggagetypeGETfindAllLuggageType()LuggageServiceLuggageType
/luggagecheck/{id}PUTupdateLuggageCheckById(luggagecheck)LuggageServiceLuggageCheck
/luggageGETfindAllLuggage()LuggageServiceLuggage
/luggagetype/{id}PUTupdateLuggageTypeById(luggagetype)LuggageServiceLuggageType
/luggage/luggagetype/{id}GETfindAllLuggageOfLuggageType(id)LuggageServiceLuggageType Luggage
/luggagecheck/checker/{id}GETfindAllLuggageCheckOfChecker(id)LuggageServiceEmployee LuggageCheck
/luggagecheck/{id}GETfindLuggageCheckById(id)LuggageServiceLuggageCheck
/luggage/{id}PUTupdateLuggageById(luggage)LuggageServiceLuggage
/luggagePOSTinsertLuggage(luggage)LuggageServiceLuggage
/luggage/flightbooking/{id}GETfindAllLuggageOfFlightBooking(id)LuggageServicePassengerBooking Luggage

LuggageService inside the microservice architecture

Microservices

3.1 AirplaneService3.2 AirportService3.3 CargoService3.4 CountryService3.5 EmployeeService3.6 LuggageService
3.7 PassengerBookingService





3.6.1 Luggage


Entity Name: Luggage

Data Schema: AirportLogistics

Master Service: LuggageService


Call graph of entity of Luggage

Microservices

3.1 AirplaneService3.2 AirportService3.3 CargoService3.4 CountryService3.5 EmployeeService3.6 LuggageService
3.7 PassengerBookingService

Entity Properties

Property NameDatatypeData EntityReference Entity
ContentSTRINGLuggage
FlightBookingLONGLuggagePassengerBooking
LuggageTypeLONGLuggageLuggageType
PrimaryKeyLONGLuggage
ServerReplicationVersionLONGLuggage
WeightingDOUBLELuggage

Pseudo code snippet

final Luggage luggage = (Luggage) this.callMicroservice(ServiceNames.LUGGAGE_SERVICE + "/luggage/" + id, Luggage.class);
if (luggage != null) {
    final LuggageType luggagetype1 = (LuggageType) this.callMicroservice(ServiceNames.LUGGAGE_SERVICE + "/luggagetype/" + luggage.getLuggageType().getId(), LuggageType.class);
    if (luggagetype1 != null) {
    }
    final PassengerBooking flightbooking2 = (PassengerBooking) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/passengerbooking/" + luggage.getFlightBooking().getId(), PassengerBooking.class);
    if (flightbooking2 != null) {
        final Seat seat3 = (Seat) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/seat/" + flightbooking2.getSeat().getId(), Seat.class);
        if (seat3 != null) {
            final Airplane airplane4 = (Airplane) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplane/" + seat3.getAirplane().getId(), Airplane.class);
            if (airplane4 != null) {
                final Airline airline5 = (Airline) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airline/" + airplane4.getAirline().getId(), Airline.class);
                if (airline5 != null) {
                }
                final AirplaneType airplanetype6 = (AirplaneType) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplanetype/" + airplane4.getAirplaneType().getId(), AirplaneType.class);
                if (airplanetype6 != null) {
                    final AirplaneProducer airplaneproducer7 = (AirplaneProducer) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplaneproducer/" + airplanetype6.getAirplaneProducer().getId(), AirplaneProducer.class);
                    if (airplaneproducer7 != null) {
                    }
                }
            }
            final SeatCategory seatcategory8 = (SeatCategory) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/seatcategory/" + seat3.getSeatCategory().getId(), SeatCategory.class);
            if (seatcategory8 != null) {
            }
        }
        final Flight flight9 = (Flight) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/flight/" + flightbooking2.getFlight().getId(), Flight.class);
        if (flight9 != null) {
            final Gate departuregate10 = (Gate) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/gate/" + flight9.getDepartureGate().getId(), Gate.class);
            if (departuregate10 != null) {
                final Terminal terminal11 = (Terminal) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/terminal/" + departuregate10.getTerminal().getId(), Terminal.class);
                if (terminal11 != null) {
                    final Airport airport12 = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + terminal11.getAirport().getId(), Airport.class);
                    if (airport12 != null) {
                        final City city13 = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + airport12.getCity().getId(), City.class);
                        if (city13 != null) {
                            final Country country14 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + city13.getCountry().getId(), Country.class);
                            if (country14 != null) {
                            }
                        }
                    }
                }
            }
            final Airplane airplane15 = (Airplane) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplane/" + flight9.getAirplane().getId(), Airplane.class);
            if (airplane15 != null) {
                final Airline airline16 = (Airline) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airline/" + airplane15.getAirline().getId(), Airline.class);
                if (airline16 != null) {
                }
                final AirplaneType airplanetype17 = (AirplaneType) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplanetype/" + airplane15.getAirplaneType().getId(), AirplaneType.class);
                if (airplanetype17 != null) {
                    final AirplaneProducer airplaneproducer18 = (AirplaneProducer) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplaneproducer/" + airplanetype17.getAirplaneProducer().getId(), AirplaneProducer.class);
                    if (airplaneproducer18 != null) {
                    }
                }
            }
            final FlightRoute flightroute19 = (FlightRoute) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/flightroute/" + flight9.getFlightRoute().getId(), FlightRoute.class);
            if (flightroute19 != null) {
                final Airport destination20 = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + flightroute19.getDestination().getId(), Airport.class);
                if (destination20 != null) {
                    final City city21 = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + destination20.getCity().getId(), City.class);
                    if (city21 != null) {
                        final Country country22 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + city21.getCountry().getId(), Country.class);
                        if (country22 != null) {
                        }
                    }
                }
                final Airport source23 = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + flightroute19.getSource().getId(), Airport.class);
                if (source23 != null) {
                    final City city24 = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + source23.getCity().getId(), City.class);
                    if (city24 != null) {
                        final Country country25 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + city24.getCountry().getId(), Country.class);
                        if (country25 != null) {
                        }
                    }
                }
            }
            final Gate arrivalgate26 = (Gate) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/gate/" + flight9.getArrivalGate().getId(), Gate.class);
            if (arrivalgate26 != null) {
                final Terminal terminal27 = (Terminal) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/terminal/" + arrivalgate26.getTerminal().getId(), Terminal.class);
                if (terminal27 != null) {
                    final Airport airport28 = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + terminal27.getAirport().getId(), Airport.class);
                    if (airport28 != null) {
                        final City city29 = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + airport28.getCity().getId(), City.class);
                        if (city29 != null) {
                            final Country country30 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + city29.getCountry().getId(), Country.class);
                            if (country30 != null) {
                            }
                        }
                    }
                }
            }
        }
        final Passenger passenger31 = (Passenger) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/passenger/" + flightbooking2.getPassenger().getId(), Passenger.class);
        if (passenger31 != null) {
            final Country nationality32 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + passenger31.getNationality().getId(), Country.class);
            if (nationality32 != null) {
            }
        }
    }
}
return luggage;


3.6.2 LuggageCheck


Entity Name: LuggageCheck

Data Schema: AirportLogistics

Master Service: LuggageService


Call graph of entity of LuggageCheck

Microservices

3.1 AirplaneService3.2 AirportService3.3 CargoService3.4 CountryService3.5 EmployeeService3.6 LuggageService
3.7 PassengerBookingService

Entity Properties

Property NameDatatypeData EntityReference Entity
CheckerLONGLuggageCheckEmployee
FromDateLONGLuggageCheck
LuggageLONGLuggageCheckLuggage
PrimaryKeyLONGLuggageCheck
ReportSTRINGLuggageCheck
ServerReplicationVersionLONGLuggageCheck
ToDateLONGLuggageCheck

Pseudo code snippet

final LuggageCheck luggagecheck = (LuggageCheck) this.callMicroservice(ServiceNames.LUGGAGE_SERVICE + "/luggagecheck/" + id, LuggageCheck.class);
if (luggagecheck != null) {
    final Luggage luggage1 = (Luggage) this.callMicroservice(ServiceNames.LUGGAGE_SERVICE + "/luggage/" + luggagecheck.getLuggage().getId(), Luggage.class);
    if (luggage1 != null) {
        final LuggageType luggagetype2 = (LuggageType) this.callMicroservice(ServiceNames.LUGGAGE_SERVICE + "/luggagetype/" + luggage1.getLuggageType().getId(), LuggageType.class);
        if (luggagetype2 != null) {
        }
        final PassengerBooking flightbooking3 = (PassengerBooking) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/passengerbooking/" + luggage1.getFlightBooking().getId(), PassengerBooking.class);
        if (flightbooking3 != null) {
            final Seat seat4 = (Seat) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/seat/" + flightbooking3.getSeat().getId(), Seat.class);
            if (seat4 != null) {
                final Airplane airplane5 = (Airplane) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplane/" + seat4.getAirplane().getId(), Airplane.class);
                if (airplane5 != null) {
                    final Airline airline6 = (Airline) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airline/" + airplane5.getAirline().getId(), Airline.class);
                    if (airline6 != null) {
                    }
                    final AirplaneType airplanetype7 = (AirplaneType) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplanetype/" + airplane5.getAirplaneType().getId(), AirplaneType.class);
                    if (airplanetype7 != null) {
                        final AirplaneProducer airplaneproducer8 = (AirplaneProducer) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplaneproducer/" + airplanetype7.getAirplaneProducer().getId(), AirplaneProducer.class);
                        if (airplaneproducer8 != null) {
                        }
                    }
                }
                final SeatCategory seatcategory9 = (SeatCategory) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/seatcategory/" + seat4.getSeatCategory().getId(), SeatCategory.class);
                if (seatcategory9 != null) {
                }
            }
            final Flight flight10 = (Flight) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/flight/" + flightbooking3.getFlight().getId(), Flight.class);
            if (flight10 != null) {
                final Gate departuregate11 = (Gate) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/gate/" + flight10.getDepartureGate().getId(), Gate.class);
                if (departuregate11 != null) {
                    final Terminal terminal12 = (Terminal) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/terminal/" + departuregate11.getTerminal().getId(), Terminal.class);
                    if (terminal12 != null) {
                        final Airport airport13 = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + terminal12.getAirport().getId(), Airport.class);
                        if (airport13 != null) {
                            final City city14 = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + airport13.getCity().getId(), City.class);
                            if (city14 != null) {
                                final Country country15 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + city14.getCountry().getId(), Country.class);
                                if (country15 != null) {
                                }
                            }
                        }
                    }
                }
                final Airplane airplane16 = (Airplane) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplane/" + flight10.getAirplane().getId(), Airplane.class);
                if (airplane16 != null) {
                    final Airline airline17 = (Airline) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airline/" + airplane16.getAirline().getId(), Airline.class);
                    if (airline17 != null) {
                    }
                    final AirplaneType airplanetype18 = (AirplaneType) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplanetype/" + airplane16.getAirplaneType().getId(), AirplaneType.class);
                    if (airplanetype18 != null) {
                        final AirplaneProducer airplaneproducer19 = (AirplaneProducer) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplaneproducer/" + airplanetype18.getAirplaneProducer().getId(), AirplaneProducer.class);
                        if (airplaneproducer19 != null) {
                        }
                    }
                }
                final FlightRoute flightroute20 = (FlightRoute) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/flightroute/" + flight10.getFlightRoute().getId(), FlightRoute.class);
                if (flightroute20 != null) {
                    final Airport destination21 = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + flightroute20.getDestination().getId(), Airport.class);
                    if (destination21 != null) {
                        final City city22 = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + destination21.getCity().getId(), City.class);
                        if (city22 != null) {
                            final Country country23 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + city22.getCountry().getId(), Country.class);
                            if (country23 != null) {
                            }
                        }
                    }
                    final Airport source24 = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + flightroute20.getSource().getId(), Airport.class);
                    if (source24 != null) {
                        final City city25 = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + source24.getCity().getId(), City.class);
                        if (city25 != null) {
                            final Country country26 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + city25.getCountry().getId(), Country.class);
                            if (country26 != null) {
                            }
                        }
                    }
                }
                final Gate arrivalgate27 = (Gate) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/gate/" + flight10.getArrivalGate().getId(), Gate.class);
                if (arrivalgate27 != null) {
                    final Terminal terminal28 = (Terminal) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/terminal/" + arrivalgate27.getTerminal().getId(), Terminal.class);
                    if (terminal28 != null) {
                        final Airport airport29 = (Airport) this.callMicroservice(ServiceNames.AIRPORT_SERVICE + "/airport/" + terminal28.getAirport().getId(), Airport.class);
                        if (airport29 != null) {
                            final City city30 = (City) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/city/" + airport29.getCity().getId(), City.class);
                            if (city30 != null) {
                                final Country country31 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + city30.getCountry().getId(), Country.class);
                                if (country31 != null) {
                                }
                            }
                        }
                    }
                }
            }
            final Passenger passenger32 = (Passenger) this.callMicroservice(ServiceNames.PASSENGER_BOOKING_SERVICE + "/passenger/" + flightbooking3.getPassenger().getId(), Passenger.class);
            if (passenger32 != null) {
                final Country nationality33 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + passenger32.getNationality().getId(), Country.class);
                if (nationality33 != null) {
                }
            }
        }
    }
    final Employee checker34 = (Employee) this.callMicroservice(ServiceNames.EMPLOYEE_SERVICE + "/employee/" + luggagecheck.getChecker().getId(), Employee.class);
    if (checker34 != null) {
        final Airline airline35 = (Airline) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airline/" + checker34.getAirline().getId(), Airline.class);
        if (airline35 != null) {
        }
    }
}
return luggagecheck;


3.6.3 LuggageType


Entity Name: LuggageType

Data Schema: AirportLogistics

Master Service: LuggageService


Call graph of entity of LuggageType

Microservices

3.1 AirplaneService3.2 AirportService3.3 CargoService3.4 CountryService3.5 EmployeeService3.6 LuggageService
3.7 PassengerBookingService

Entity Properties

Property NameDatatypeData EntityReference Entity
DescriptionSTRINGLuggageType
PrimaryKeyLONGLuggageType
ServerReplicationVersionLONGLuggageType
TypeNameSTRINGLuggageType

Pseudo code snippet

final LuggageType luggagetype = (LuggageType) this.callMicroservice(ServiceNames.LUGGAGE_SERVICE + "/luggagetype/" + id, LuggageType.class);
if (luggagetype != null) {
}
return luggagetype;


Table of content