Table of content



The ShopEmployee entity within the microservice architecture

Entity-Relationship-Model of <CountryService>

Entity Name: ShopEmployee

Data Schema: Shop

Master Service: CountryService


Dataflow 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

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/shopemployee/{id}DELETEdeleteShopEmployeeById(id)CountryServiceShopEmployee
/shopemployeeGETfindAllShopEmployee()CountryServiceShopEmployee
/shopemployee/{id}PUTupdateShopEmployeeById(shopemployee)CountryServiceShopEmployee
/warehouseresponsibility/shopemployee/{id}GETfindAllWarehouseResponsibilityOfShopEmployee(id)CountryServiceShopEmployee WarehouseResponsibility
/shopemployeePOSTinsertShopEmployee(shopemployee)CountryServiceShopEmployee
/shopemployee/{id}GETfindShopEmployeeById(id)CountryServiceShopEmployee

Distributed transaction of <ShopEmployee>

Pseudo code snippet

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


Table of content