Table of content



The WarehouseResponsibility entity within the microservice architecture

Entity-Relationship-Model of <CountryService>

Entity Name: WarehouseResponsibility

Data Schema: Shop

Master Service: CountryService


Dataflow of entity of WarehouseResponsibility

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
PrimaryKeyLONGWarehouseResponsibility
RemarksSTRINGWarehouseResponsibility
ServerReplicationVersionLONGWarehouseResponsibility
ShopEmployeeLONGWarehouseResponsibilityShopEmployee
ShopOwnerLONGWarehouseResponsibility
WarehouseLONGWarehouseResponsibilityWarehouse

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/warehouseresponsibilityGETfindAllWarehouseResponsibility()CountryServiceWarehouseResponsibility
/warehouseresponsibility/{id}DELETEdeleteWarehouseResponsibilityById(id)CountryServiceWarehouseResponsibility
/warehouseresponsibility/{id}GETfindWarehouseResponsibilityById(id)CountryServiceWarehouseResponsibility
/warehouseresponsibilityPOSTinsertWarehouseResponsibility(warehouseresponsibility)CountryServiceWarehouseResponsibility
/warehouseresponsibility/{id}PUTupdateWarehouseResponsibilityById(warehouseresponsibility)CountryServiceWarehouseResponsibility
/warehouseresponsibility/warehouse/{id}GETfindAllWarehouseResponsibilityOfWarehouse(id)CountryServiceWarehouse WarehouseResponsibility
/warehouseresponsibility/shopemployee/{id}GETfindAllWarehouseResponsibilityOfShopEmployee(id)CountryServiceShopEmployee WarehouseResponsibility

Distributed transaction of <WarehouseResponsibility>

Pseudo code snippet

final WarehouseResponsibility warehouseresponsibility = (WarehouseResponsibility) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/warehouseresponsibility/" + id, WarehouseResponsibility.class);
if (warehouseresponsibility != null) {
    final Warehouse warehouse1 = (Warehouse) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/warehouse/" + warehouseresponsibility.getWarehouse().getId(), Warehouse.class);
    if (warehouse1 != null) {
        final Country country2 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + warehouse1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
    final ShopEmployee shopemployee3 = (ShopEmployee) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopemployee/" + warehouseresponsibility.getShopEmployee().getId(), ShopEmployee.class);
    if (shopemployee3 != null) {
    }
}
return warehouseresponsibility;


Table of content