Table of content



The ProductCategory entity within the microservice architecture

Entity-Relationship-Model of <ProductService>

Entity Name: ProductCategory

Data Schema: Shop

Master Service: ProductService


Dataflow of entity of ProductCategory

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
CategoryNameSTRINGProductCategory
DescriptionSTRINGProductCategory
PrimaryKeyLONGProductCategory
ServerReplicationVersionLONGProductCategory
ShopOwnerLONGProductCategory

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/productcategory/{id}DELETEdeleteProductCategoryById(id)ProductServiceProductCategory
/productcategoryGETfindAllProductCategory()ProductServiceProductCategory
/discountcampaignproductcategory/productcategory/{id}GETfindAllDiscountCampaignProductCategoryOfProductCategory(id)DiscountCampaignServiceProductCategory DiscountCampaignProductCategory
/product/productcategory/{id}GETfindAllProductOfProductCategory(id)ProductServiceProductCategory Product
/productcategory/{id}PUTupdateProductCategoryById(productcategory)ProductServiceProductCategory
/productcategory/{id}GETfindProductCategoryById(id)ProductServiceProductCategory
/productcategoryPOSTinsertProductCategory(productcategory)ProductServiceProductCategory

Distributed transaction of <ProductCategory>

Pseudo code snippet

final ProductCategory productcategory = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + id, ProductCategory.class);
if (productcategory != null) {
}
return productcategory;


Table of content