Table of content



The CustomerGroupMember entity within the microservice architecture

Entity-Relationship-Model of <CountryService>

Entity Name: CustomerGroupMember

Data Schema: Shop

Master Service: CountryService


Dataflow 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

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/customergroupmember/{id}PUTupdateCustomerGroupMemberById(customergroupmember)CountryServiceCustomerGroupMember
/customergroupmember/customergroup/{id}GETfindAllCustomerGroupMemberOfCustomerGroup(id)CountryServiceCustomerGroup CustomerGroupMember
/customergroupmember/{id}DELETEdeleteCustomerGroupMemberById(id)CountryServiceCustomerGroupMember
/customergroupmemberPOSTinsertCustomerGroupMember(customergroupmember)CountryServiceCustomerGroupMember
/customergroupmember/{id}GETfindCustomerGroupMemberById(id)CountryServiceCustomerGroupMember
/customergroupmember/shopcustomer/{id}GETfindAllCustomerGroupMemberOfShopCustomer(id)CountryServiceShopCustomer CustomerGroupMember
/customergroupmemberGETfindAllCustomerGroupMember()CountryServiceCustomerGroupMember

Distributed transaction of <CustomerGroupMember>

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;


Table of content