Examples of ProductMarketingCustomerRate


Examples of org.hoteia.qalingo.core.domain.ProductMarketingCustomerRate

        productMarketingCustomerRate.setDateUpdate(new Date());
        if (productMarketingCustomerRate.getId() != null) {
            if(em.contains(productMarketingCustomerRate)){
                em.refresh(productMarketingCustomerRate);
            }
            ProductMarketingCustomerRate mergedProductMarketingCustomerRate = em.merge(productMarketingCustomerRate);
            em.flush();
            return mergedProductMarketingCustomerRate;
        } else {
            em.persist(productMarketingCustomerRate);
            return productMarketingCustomerRate;
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.ProductMarketingCustomerRate

   
    final ProductMarketing product = productService.getProductMarketingByCode(productCode);
    final Customer customer = requestData.getCustomer();
   
    if (qualityOfService != 0) {
      ProductMarketingCustomerRate productCustomerRate = new ProductMarketingCustomerRate();
      productCustomerRate.setRate(qualityOfService);
      productCustomerRate.setProductMarketingId(product.getId());
      productCustomerRate.setCustomerId(customer.getId());
      productCustomerRate.setType(Constants.PRODUCT_QUALITY_RATING_TYPE);
      productService.saveOrUpdateProductMarketingCustomerRate(productCustomerRate);
    }
   
    if (ratioQualityPrice != 0) {
      ProductMarketingCustomerRate productCustomerRate = new ProductMarketingCustomerRate();
      productCustomerRate.setRate(ratioQualityPrice);
      productCustomerRate.setProductMarketingId(product.getId());
      productCustomerRate.setCustomerId(customer.getId());
      productCustomerRate.setType(Constants.PRODUCT_PRICE_RATING_TYPE);
      productService.saveOrUpdateProductMarketingCustomerRate(productCustomerRate);
    }
   
    if (priceScore != 0) {
      ProductMarketingCustomerRate productCustomerRate = new ProductMarketingCustomerRate();
      productCustomerRate.setRate(priceScore);
      productCustomerRate.setProductMarketingId(product.getId());
      productCustomerRate.setCustomerId(customer.getId());
      productCustomerRate.setType(Constants.PRODUCT_VALUE_RATING_TYPE);
      productService.saveOrUpdateProductMarketingCustomerRate(productCustomerRate);
    }
   
    if (StringUtils.isNotEmpty(productCommentForm.getComment())) {
      ProductMarketingCustomerComment productCustomerComment = new ProductMarketingCustomerComment();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.