Table of content



The ShopCustomer entity within the microservice architecture

Entity-Relationship-Model of <CountryService>

Entity Name: ShopCustomer

Data Schema: Shop

Master Service: CountryService


Dataflow 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

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/shopcustomer/{id}PUTupdateShopCustomerById(shopcustomer)CountryServiceShopCustomer
/customerorder/shopcustomer/{id}GETfindAllCustomerOrderOfShopCustomer(id)CountryServiceShopCustomer CustomerOrder
/shopcustomerGETfindAllShopCustomer()CountryServiceShopCustomer
/delivery/shopcustomer/{id}GETfindAllDeliveryOfShopCustomer(id)CountryServiceShopCustomer Delivery
/shopcustomerPOSTinsertShopCustomer(shopcustomer)CountryServiceShopCustomer
/shopcustomer/{id}GETfindShopCustomerById(id)CountryServiceShopCustomer
/customergroupmember/shopcustomer/{id}GETfindAllCustomerGroupMemberOfShopCustomer(id)CountryServiceShopCustomer CustomerGroupMember
/discountcampaigncustomer/shopcustomer/{id}GETfindAllDiscountCampaignCustomerOfShopCustomer(id)CountryServiceShopCustomer DiscountCampaignCustomer
/shopcustomer/country/{id}GETfindAllShopCustomerOfCountry(id)CountryServiceCountry ShopCustomer
/shopcustomer/{id}DELETEdeleteShopCustomerById(id)CountryServiceShopCustomer

Distributed transaction of <ShopCustomer>

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;


Table of content