Table of content



The DiscountCampaignProductCategory entity within the microservice architecture

Entity-Relationship-Model of <DiscountCampaignService>

Entity Name: DiscountCampaignProductCategory

Data Schema: Shop

Master Service: DiscountCampaignService


Dataflow of entity of DiscountCampaignProductCategory

Microservices

3.1 CountryService3.2 DiscountCampaignService3.3 ProductService3.4 ShopLicenseService

Entity Properties

Property NameDatatypeData EntityReference Entity
DiscountCampaignLONGDiscountCampaignProductCategoryDiscountCampaign
PrimaryKeyLONGDiscountCampaignProductCategory
ProductCategoryLONGDiscountCampaignProductCategoryProductCategory
ServerReplicationVersionLONGDiscountCampaignProductCategory
ShopOwnerLONGDiscountCampaignProductCategory

Service Interfaces

Relative mapping URLRequest MethodMethod NameMicroserviceInvolved Entities
/discountcampaignproductcategory/productcategory/{id}GETfindAllDiscountCampaignProductCategoryOfProductCategory(id)DiscountCampaignServiceProductCategory DiscountCampaignProductCategory
/discountcampaignproductcategory/{id}GETfindDiscountCampaignProductCategoryById(id)DiscountCampaignServiceDiscountCampaignProductCategory
/discountcampaignproductcategory/{id}DELETEdeleteDiscountCampaignProductCategoryById(id)DiscountCampaignServiceDiscountCampaignProductCategory
/discountcampaignproductcategoryGETfindAllDiscountCampaignProductCategory()DiscountCampaignServiceDiscountCampaignProductCategory
/discountcampaignproductcategoryPOSTinsertDiscountCampaignProductCategory(discountcampaignproductcategory)DiscountCampaignServiceDiscountCampaignProductCategory
/discountcampaignproductcategory/discountcampaign/{id}GETfindAllDiscountCampaignProductCategoryOfDiscountCampaign(id)DiscountCampaignServiceDiscountCampaign DiscountCampaignProductCategory
/discountcampaignproductcategory/{id}PUTupdateDiscountCampaignProductCategoryById(discountcampaignproductcategory)DiscountCampaignServiceDiscountCampaignProductCategory

Distributed transaction of <DiscountCampaignProductCategory>

Pseudo code snippet

final DiscountCampaignProductCategory discountcampaignproductcategory = (DiscountCampaignProductCategory) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discountcampaignproductcategory/" + id, DiscountCampaignProductCategory.class);
if (discountcampaignproductcategory != null) {
    final ProductCategory productcategory1 = (ProductCategory) this.callMicroservice(ServiceNames.PRODUCT_SERVICE + "/productcategory/" + discountcampaignproductcategory.getProductCategory().getId(), ProductCategory.class);
    if (productcategory1 != null) {
    }
    final DiscountCampaign discountcampaign2 = (DiscountCampaign) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discountcampaign/" + discountcampaignproductcategory.getDiscountCampaign().getId(), DiscountCampaign.class);
    if (discountcampaign2 != null) {
        final DiscountType discounttype3 = (DiscountType) this.callMicroservice(ServiceNames.DISCOUNT_CAMPAIGN_SERVICE + "/discounttype/" + discountcampaign2.getDiscountType().getId(), DiscountType.class);
        if (discounttype3 != null) {
        }
    }
}
return discountcampaignproductcategory;


Table of content