Overview

Summary

ContactDonateImprint


Appendix E-1: QUESTION (UI prompt)


QuestionProductModuleAmazonCom

Properties (5)

PropertyTypeEntityReferenceModule
(1) BodySTRINGQuestion
(2) CreatedAtDATEQuestion
(3) CustomerLONGQuestionCustomerCustomerModule
(4) ProductLONGQuestionProductProductModule
(5) TitleSTRINGQuestion


Module Interfaces (8)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /question/product/{id}findAllQuestionOfProduct(id)ProductModuleGETProduct Question
(2) /questioninsertQuestion(question)ProductModulePOSTQuestion
(3) /question/{id}updateQuestionById(question)ProductModulePUTQuestion
(4) /question/{id}deleteQuestionById(id)ProductModuleDELETEQuestion
(5) /answer/question/{id}findAllAnswerOfQuestion(id)ProductModuleGETQuestion Answer
(6) /question/{id}findQuestionById(id)ProductModuleGETQuestion
(7) /questionfindAllQuestion()ProductModuleGETQuestion
(8) /question/customer/{id}findAllQuestionOfCustomer(id)ProductModuleGETCustomer Question





Example:

final Question question = (Question) invokeModule(PRODUCT_MODULE + "/question/" + id, Question.class);
if (question != null) {
    final Product product1 = (Product) invokeModule(PRODUCT_MODULE + "/product/" + question.getProduct().getId(), Product.class);
    if (product1 != null) {
        final Brand brand2 = (Brand) invokeModule(PRODUCT_MODULE + "/brand/" + product1.getBrand().getId(), Brand.class);
        if (brand2 != null) {
        }
    }
    final Customer customer3 = (Customer) invokeModule(CUSTOMER_MODULE + "/customer/" + question.getCustomer().getId(), Customer.class);
    if (customer3 != null) {
    }
}
return question;


Overview

Summary

ContactDonateImprint