Table of content



The Airplane entity within the microservice architecture

Entity-Relationship-Model of <AirplaneService>

Entity Name: Airplane

Data Schema: AirportLogistics

Master Service: AirplaneService


Dataflow of entity of Airplane

Microservices

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

Entity Properties

Property NameDatatypeData EntityReference Entity
AirlineLONGAirplaneAirline
AirplaneIDSTRINGAirplane
AirplaneTypeLONGAirplaneAirplaneType
PrimaryKeyLONGAirplane
ServerReplicationVersionLONGAirplane

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/airplane/airline/{id}GETfindAllAirplaneOfAirline(id)AirplaneServiceAirline Airplane
/airplaneGETfindAllAirplane()AirplaneServiceAirplane
/airplane/{id}PUTupdateAirplaneById(airplane)AirplaneServiceAirplane
/flight/airplane/{id}GETfindAllFlightOfAirplane(id)AirportServiceAirplane Flight
/airplaneequipment/airplane/{id}GETfindAllAirplaneEquipmentOfAirplane(id)AirplaneServiceAirplane AirplaneEquipment
/airplane/airplanetype/{id}GETfindAllAirplaneOfAirplaneType(id)AirplaneServiceAirplaneType Airplane
/airplanePOSTinsertAirplane(airplane)AirplaneServiceAirplane
/seat/airplane/{id}GETfindAllSeatOfAirplane(id)PassengerBookingServiceAirplane Seat
/airplane/{id}DELETEdeleteAirplaneById(id)AirplaneServiceAirplane
/airplane/{id}GETfindAirplaneById(id)AirplaneServiceAirplane

Distributed transaction of <Airplane>

Pseudo code snippet

final Airplane airplane = (Airplane) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplane/" + id, Airplane.class);
if (airplane != null) {
    final Airline airline1 = (Airline) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airline/" + airplane.getAirline().getId(), Airline.class);
    if (airline1 != null) {
    }
    final AirplaneType airplanetype2 = (AirplaneType) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplanetype/" + airplane.getAirplaneType().getId(), AirplaneType.class);
    if (airplanetype2 != null) {
        final AirplaneProducer airplaneproducer3 = (AirplaneProducer) this.callMicroservice(ServiceNames.AIRPLANE_SERVICE + "/airplaneproducer/" + airplanetype2.getAirplaneProducer().getId(), AirplaneProducer.class);
        if (airplaneproducer3 != null) {
        }
    }
}
return airplane;


Table of content