Table of content



The LuggageCheck entity within the microservice architecture

Entity-Relationship-Model of <LuggageService>

Entity Name: LuggageCheck

Data Schema: AirportLogistics

Master Service: LuggageService


Dataflow 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

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/luggagecheck/checker/{id}GETfindAllLuggageCheckOfChecker(id)LuggageServiceEmployee LuggageCheck
/luggagecheck/{id}GETfindLuggageCheckById(id)LuggageServiceLuggageCheck
/luggagecheck/{id}DELETEdeleteLuggageCheckById(id)LuggageServiceLuggageCheck
/luggagecheck/luggage/{id}GETfindAllLuggageCheckOfLuggage(id)LuggageServiceLuggage LuggageCheck
/luggagecheckPOSTinsertLuggageCheck(luggagecheck)LuggageServiceLuggageCheck
/luggagecheck/{id}PUTupdateLuggageCheckById(luggagecheck)LuggageServiceLuggageCheck
/luggagecheckGETfindAllLuggageCheck()LuggageServiceLuggageCheck

Distributed transaction of <LuggageCheck>

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;


Table of content