Table of content



3.1. CountryService


Entity-Relationship-Model of CountryService

Schema Entities

Entity NameAlias NameMicroserviceData Schema
CountryCountryCountryServiceShop
CustomerDeliveryCustomerDeliveryProductServiceShop
CustomerGroupCustomerGroupCountryServiceShop
CustomerGroupMemberCustomerGroupMemberCountryServiceShop
CustomerOrderCustomerOrderCountryServiceShop
DeliveryDeliveryCountryServiceShop
DiscountCampaignDiscountCampaignDiscountCampaignServiceShop
DiscountCampaignCustomerDiscountCampaignCustomerCountryServiceShop
DiscountCampaignCustomerGroupDiscountCampaignCustomerGroupDiscountCampaignServiceShop
OrderItemOrderItemProductServiceShop
ProductProductProductServiceShop
ProductDeliveryProductDeliveryProductServiceShop
ProductPriceProductPriceProductServiceShop
PurchaseRulePurchaseRuleProductServiceShop
SalesTaxSalesTaxProductServiceShop
ShopCustomerShopCustomerCountryServiceShop
ShopEmployeeShopEmployeeCountryServiceShop
WarehouseWarehouseCountryServiceShop
WarehouseResponsibilityWarehouseResponsibilityCountryServiceShop

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/warehouse/country/{id}GETfindAllWarehouseOfCountry(id)CountryServiceCountry Warehouse
/customergroupPOSTinsertCustomerGroup(customergroup)CountryServiceCustomerGroup
/country/{id}PUTupdateCountryById(country)CountryServiceCountry
/deliveryGETfindAllDelivery()CountryServiceDelivery
/deliveryPOSTinsertDelivery(delivery)CountryServiceDelivery
/shopemployee/{id}GETfindShopEmployeeById(id)CountryServiceShopEmployee
/discountcampaigncustomer/{id}DELETEdeleteDiscountCampaignCustomerById(id)CountryServiceDiscountCampaignCustomer
/country/{id}GETfindCountryById(id)CountryServiceCountry
/customerorder/shopcustomer/{id}GETfindAllCustomerOrderOfShopCustomer(id)CountryServiceShopCustomer CustomerOrder
/warehousePOSTinsertWarehouse(warehouse)CountryServiceWarehouse
/shopemployee/{id}PUTupdateShopEmployeeById(shopemployee)CountryServiceShopEmployee
/warehouseresponsibility/warehouse/{id}GETfindAllWarehouseResponsibilityOfWarehouse(id)CountryServiceWarehouse WarehouseResponsibility
/shopcustomer/{id}DELETEdeleteShopCustomerById(id)CountryServiceShopCustomer
/customerorderGETfindAllCustomerOrder()CountryServiceCustomerOrder
/shopemployee/{id}DELETEdeleteShopEmployeeById(id)CountryServiceShopEmployee
/delivery/shopcustomer/{id}GETfindAllDeliveryOfShopCustomer(id)CountryServiceShopCustomer Delivery
/shopcustomer/{id}GETfindShopCustomerById(id)CountryServiceShopCustomer
/countryGETfindAllCountry()CountryServiceCountry
/customergroupmemberGETfindAllCustomerGroupMember()CountryServiceCustomerGroupMember
/warehouse/{id}GETfindWarehouseById(id)CountryServiceWarehouse
/shopemployeeGETfindAllShopEmployee()CountryServiceShopEmployee
/shopcustomerPOSTinsertShopCustomer(shopcustomer)CountryServiceShopCustomer
/discountcampaigncustomer/discountcampaign/{id}GETfindAllDiscountCampaignCustomerOfDiscountCampaign(id)CountryServiceDiscountCampaign DiscountCampaignCustomer
/warehouseresponsibility/shopemployee/{id}GETfindAllWarehouseResponsibilityOfShopEmployee(id)CountryServiceShopEmployee WarehouseResponsibility
/country/{id}DELETEdeleteCountryById(id)CountryServiceCountry
/warehouse/{id}PUTupdateWarehouseById(warehouse)CountryServiceWarehouse
/customergroup/{id}DELETEdeleteCustomerGroupById(id)CountryServiceCustomerGroup
/discountcampaigncustomer/shopcustomer/{id}GETfindAllDiscountCampaignCustomerOfShopCustomer(id)CountryServiceShopCustomer DiscountCampaignCustomer
/shopemployeePOSTinsertShopEmployee(shopemployee)CountryServiceShopEmployee
/warehouseresponsibility/{id}DELETEdeleteWarehouseResponsibilityById(id)CountryServiceWarehouseResponsibility
/countryPOSTinsertCountry(country)CountryServiceCountry
/shopcustomer/{id}PUTupdateShopCustomerById(shopcustomer)CountryServiceShopCustomer
/warehouseresponsibility/{id}GETfindWarehouseResponsibilityById(id)CountryServiceWarehouseResponsibility
/discountcampaigncustomerGETfindAllDiscountCampaignCustomer()CountryServiceDiscountCampaignCustomer
/warehouseGETfindAllWarehouse()CountryServiceWarehouse
/warehouseresponsibilityPOSTinsertWarehouseResponsibility(warehouseresponsibility)CountryServiceWarehouseResponsibility
/customergroupmemberPOSTinsertCustomerGroupMember(customergroupmember)CountryServiceCustomerGroupMember
/customerorder/{id}GETfindCustomerOrderById(id)CountryServiceCustomerOrder
/customergroupmember/customergroup/{id}GETfindAllCustomerGroupMemberOfCustomerGroup(id)CountryServiceCustomerGroup CustomerGroupMember
/discountcampaigncustomerPOSTinsertDiscountCampaignCustomer(discountcampaigncustomer)CountryServiceDiscountCampaignCustomer
/discountcampaigncustomer/{id}PUTupdateDiscountCampaignCustomerById(discountcampaigncustomer)CountryServiceDiscountCampaignCustomer
/customerorderPOSTinsertCustomerOrder(customerorder)CountryServiceCustomerOrder
/customergroupmember/{id}GETfindCustomerGroupMemberById(id)CountryServiceCustomerGroupMember
/customergroupGETfindAllCustomerGroup()CountryServiceCustomerGroup
/customergroupmember/{id}PUTupdateCustomerGroupMemberById(customergroupmember)CountryServiceCustomerGroupMember
/customerorder/{id}PUTupdateCustomerOrderById(customerorder)CountryServiceCustomerOrder
/warehouseresponsibilityGETfindAllWarehouseResponsibility()CountryServiceWarehouseResponsibility
/discountcampaigncustomer/{id}GETfindDiscountCampaignCustomerById(id)CountryServiceDiscountCampaignCustomer
/warehouseresponsibility/{id}PUTupdateWarehouseResponsibilityById(warehouseresponsibility)CountryServiceWarehouseResponsibility
/delivery/{id}PUTupdateDeliveryById(delivery)CountryServiceDelivery
/delivery/{id}GETfindDeliveryById(id)CountryServiceDelivery
/customerorder/{id}DELETEdeleteCustomerOrderById(id)CountryServiceCustomerOrder
/shopcustomerGETfindAllShopCustomer()CountryServiceShopCustomer
/customergroupmember/shopcustomer/{id}GETfindAllCustomerGroupMemberOfShopCustomer(id)CountryServiceShopCustomer CustomerGroupMember
/customergroup/{id}PUTupdateCustomerGroupById(customergroup)CountryServiceCustomerGroup
/customergroupmember/{id}DELETEdeleteCustomerGroupMemberById(id)CountryServiceCustomerGroupMember
/delivery/{id}DELETEdeleteDeliveryById(id)CountryServiceDelivery
/customergroup/{id}GETfindCustomerGroupById(id)CountryServiceCustomerGroup
/warehouse/{id}DELETEdeleteWarehouseById(id)CountryServiceWarehouse
/shopcustomer/country/{id}GETfindAllShopCustomerOfCountry(id)CountryServiceCountry ShopCustomer

CountryService inside the microservice architecture

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService





3.1.1 Country


Entity Name: Country

Data Schema: Shop

Master Service: CountryService


Call graph of entity of Country

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CountryCodeSTRINGCountry
CountryNameSTRINGCountry
PrimaryKeyLONGCountry
ServerReplicationVersionLONGCountry

Pseudo code snippet

final Country country = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + id, Country.class);
if (country != null) {
}
return country;


3.1.2 CustomerGroup


Entity Name: CustomerGroup

Data Schema: Shop

Master Service: CountryService


Call graph of entity of CustomerGroup

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CreationDateLONGCustomerGroup
DescriptionSTRINGCustomerGroup
GroupNameSTRINGCustomerGroup
PrimaryKeyLONGCustomerGroup
ServerReplicationVersionLONGCustomerGroup
ShopOwnerLONGCustomerGroup

Pseudo code snippet

final CustomerGroup customergroup = (CustomerGroup) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customergroup/" + id, CustomerGroup.class);
if (customergroup != null) {
}
return customergroup;


3.1.3 CustomerGroupMember


Entity Name: CustomerGroupMember

Data Schema: Shop

Master Service: CountryService


Call graph of entity of CustomerGroupMember

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CustomerGroupLONGCustomerGroupMemberCustomerGroup
PrimaryKeyLONGCustomerGroupMember
ServerReplicationVersionLONGCustomerGroupMember
ShopCustomerLONGCustomerGroupMemberShopCustomer
ShopOwnerLONGCustomerGroupMember

Pseudo code snippet

final CustomerGroupMember customergroupmember = (CustomerGroupMember) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customergroupmember/" + id, CustomerGroupMember.class);
if (customergroupmember != null) {
    final ShopCustomer shopcustomer1 = (ShopCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopcustomer/" + customergroupmember.getShopCustomer().getId(), ShopCustomer.class);
    if (shopcustomer1 != null) {
        final Country country2 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + shopcustomer1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
    final CustomerGroup customergroup3 = (CustomerGroup) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customergroup/" + customergroupmember.getCustomerGroup().getId(), CustomerGroup.class);
    if (customergroup3 != null) {
    }
}
return customergroupmember;


3.1.4 CustomerOrder


Entity Name: CustomerOrder

Data Schema: Shop

Master Service: CountryService


Call graph of entity of CustomerOrder

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
OrderDateLONGCustomerOrder
PrimaryKeyLONGCustomerOrder
RemarksSTRINGCustomerOrder
ServerReplicationVersionLONGCustomerOrder
ShopCustomerLONGCustomerOrderShopCustomer
ShopOwnerLONGCustomerOrder

Pseudo code snippet

final CustomerOrder customerorder = (CustomerOrder) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/customerorder/" + id, CustomerOrder.class);
if (customerorder != null) {
    final ShopCustomer shopcustomer1 = (ShopCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopcustomer/" + customerorder.getShopCustomer().getId(), ShopCustomer.class);
    if (shopcustomer1 != null) {
        final Country country2 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + shopcustomer1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
}
return customerorder;


3.1.5 Delivery


Entity Name: Delivery

Data Schema: Shop

Master Service: CountryService


Call graph of entity of Delivery

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
ConditionsSTRINGDelivery
DeliveryDateLONGDelivery
PrimaryKeyLONGDelivery
ServerReplicationVersionLONGDelivery
ShopCustomerLONGDeliveryShopCustomer
ShopOwnerLONGDelivery

Pseudo code snippet

final Delivery delivery = (Delivery) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/delivery/" + id, Delivery.class);
if (delivery != null) {
    final ShopCustomer shopcustomer1 = (ShopCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopcustomer/" + delivery.getShopCustomer().getId(), ShopCustomer.class);
    if (shopcustomer1 != null) {
        final Country country2 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + shopcustomer1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
}
return delivery;


3.1.6 DiscountCampaignCustomer


Entity Name: DiscountCampaignCustomer

Data Schema: Shop

Master Service: CountryService


Call graph of entity of DiscountCampaignCustomer

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
DiscountCampaignLONGDiscountCampaignCustomerDiscountCampaign
MaxDiscountsINTDiscountCampaignCustomer
PrimaryKeyLONGDiscountCampaignCustomer
ServerReplicationVersionLONGDiscountCampaignCustomer
ShopCustomerLONGDiscountCampaignCustomerShopCustomer
ShopOwnerLONGDiscountCampaignCustomer
UsedDiscountsINTDiscountCampaignCustomer

Pseudo code snippet

final DiscountCampaignCustomer discountcampaigncustomer = (DiscountCampaignCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/discountcampaigncustomer/" + id, DiscountCampaignCustomer.class);
if (discountcampaigncustomer != null) {
    final ShopCustomer shopcustomer1 = (ShopCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopcustomer/" + discountcampaigncustomer.getShopCustomer().getId(), ShopCustomer.class);
    if (shopcustomer1 != null) {
        final Country country2 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + shopcustomer1.getCountry().getId(), Country.class);
        if (country2 != null) {
        }
    }
    final DiscountCampaign discountcampaign3 = (DiscountCampaign) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discountcampaign/" + discountcampaigncustomer.getDiscountCampaign().getId(), DiscountCampaign.class);
    if (discountcampaign3 != null) {
        final DiscountType discounttype4 = (DiscountType) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discounttype/" + discountcampaign3.getDiscountType().getId(), DiscountType.class);
        if (discounttype4 != null) {
        }
    }
}
return discountcampaigncustomer;


3.1.7 ShopCustomer


Entity Name: ShopCustomer

Data Schema: Shop

Master Service: CountryService


Call graph of entity of ShopCustomer

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CitySTRINGShopCustomer
CountryLONGShopCustomerCountry
FirstNameSTRINGShopCustomer
LastNameSTRINGShopCustomer
PrimaryKeyLONGShopCustomer
ServerReplicationVersionLONGShopCustomer
ShopOwnerLONGShopCustomer
StreetSTRINGShopCustomer

Pseudo code snippet

final ShopCustomer shopcustomer = (ShopCustomer) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopcustomer/" + id, ShopCustomer.class);
if (shopcustomer != null) {
    final Country country1 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + shopcustomer.getCountry().getId(), Country.class);
    if (country1 != null) {
    }
}
return shopcustomer;


3.1.8 ShopEmployee


Entity Name: ShopEmployee

Data Schema: Shop

Master Service: CountryService


Call graph of entity of ShopEmployee

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
EmailSTRINGShopEmployee
EmployeeNameSTRINGShopEmployee
EncryptedPasswordSTRINGShopEmployee
PrimaryKeyLONGShopEmployee
ServerReplicationVersionLONGShopEmployee
ShowOwnerLONGShopEmployee
UserNameSTRINGShopEmployee

Pseudo code snippet

final ShopEmployee shopemployee = (ShopEmployee) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/shopemployee/" + id, ShopEmployee.class);
if (shopemployee != null) {
}
return shopemployee;


3.1.9 Warehouse


Entity Name: Warehouse

Data Schema: Shop

Master Service: CountryService


Call graph of entity of Warehouse

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CitySTRINGWarehouse
CountryLONGWarehouseCountry
PrimaryKeyLONGWarehouse
ServerReplicationVersionLONGWarehouse
ShopOwnerLONGWarehouse
StreetSTRINGWarehouse
WarehouseNameSTRINGWarehouse

Pseudo code snippet

final Warehouse warehouse = (Warehouse) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/warehouse/" + id, Warehouse.class);
if (warehouse != null) {
    final Country country1 = (Country) this.callMicroservice(ServiceNames.COUNTRY_SERVICE + "/country/" + warehouse.getCountry().getId(), Country.class);
    if (country1 != null) {
    }
}
return warehouse;


3.1.10 WarehouseResponsibility


Entity Name: WarehouseResponsibility

Data Schema: Shop

Master Service: CountryService


Call graph 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

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