Table of content



The ShopOwner entity within the microservice architecture

Entity-Relationship-Model of <ShopLicenseService>

Entity Name: ShopOwner

Data Schema: Shop

Master Service: ShopLicenseService


Dataflow of entity of ShopOwner

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
OwnerNameSTRINGShopOwner
PrimaryKeyLONGShopOwner
ServerReplicationVersionLONGShopOwner
ShopLicenseLONGShopOwnerShopLicense

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/shopowner/{id}GETfindShopOwnerById(id)ShopLicenseServiceShopOwner
/shopownerGETfindAllShopOwner()ShopLicenseServiceShopOwner
/shopowner/shoplicense/{id}GETfindAllShopOwnerOfShopLicense(id)ShopLicenseServiceShopLicense ShopOwner
/shopownerPOSTinsertShopOwner(shopowner)ShopLicenseServiceShopOwner
/shopowner/{id}PUTupdateShopOwnerById(shopowner)ShopLicenseServiceShopOwner
/shopowner/{id}DELETEdeleteShopOwnerById(id)ShopLicenseServiceShopOwner

Distributed transaction of <ShopOwner>

Pseudo code snippet

final ShopOwner shopowner = (ShopOwner) this.callMicroservice(ServiceNames.SHOP_LICENSE_SERVICE + "/shopowner/" + id, ShopOwner.class);
if (shopowner != null) {
    final ShopLicense shoplicense1 = (ShopLicense) this.callMicroservice(ServiceNames.SHOP_LICENSE_SERVICE + "/shoplicense/" + shopowner.getShopLicense().getId(), ShopLicense.class);
    if (shoplicense1 != null) {
    }
}
return shopowner;


Table of content