Examples of ProductProperty


Examples of com.lgx8.gateway.entities.ProductProperty

    this.productPropertyCategoryDao = productPropertyCategoryDao;
  }

  @Transactional
  public ProductProperty createProductProperty(Long categoryId, String value) {
    ProductProperty property = new ProductProperty();
    property.setEnabled(true);
   
    ProductPropertyCategory category = productPropertyCategoryDao.findProductPropertyCategoryById(categoryId);
   
    property.setCategory(category);
    property.setValue(value);
    getHibernateTemplate().persist(property);
    return property;
  }
View Full Code Here

Examples of com.lgx8.gateway.entities.ProductProperty

    getHibernateTemplate().update(property);
    return property;
  }

  public ProductProperty findProductPropertyById(Long id) {
    ProductProperty property = getHibernateTemplate().get(ProductProperty.class, id);
    return property;
  }
View Full Code Here

Examples of com.lgx8.gateway.entities.ProductProperty

    return property;
  }

  @Transactional
  public void deleteProductProperty(Long id) {
    ProductProperty property = findProductPropertyById(id);
    property.setEnabled(false);
    getHibernateTemplate().update(property);
  }
View Full Code Here

Examples of com.lgx8.gateway.entities.ProductProperty

    if("0".equals(id))
    {
      gatewayService.createProductProperty(Long.parseLong(categoryId), value);
    }else
    {
      ProductProperty property = gatewayService.findProductPropertyById(Long.parseLong(id));
      property.setValue(value);
      ProductPropertyCategory category = gatewayService.findProductPropertyCategoryById(Long.parseLong(categoryId));
      property.setCategory(category);
     
      gatewayService.updateProductProperty(property);
    }
   
   
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.