Examples of ProductPropertyCategory


Examples of com.lgx8.gateway.entities.ProductPropertyCategory

  @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.ProductPropertyCategory

public class ProductPropertyCategoryDao extends BaseDao implements IProductPropertyCategoryDao {

  @Transactional
  public ProductPropertyCategory createProductPropertyCategory(String name) {
    ProductPropertyCategory category = new ProductPropertyCategory();
    category.setEnabled(true);
    category.setName(name);
    getHibernateTemplate().persist(category);
    return category;
  }
View Full Code Here

Examples of com.lgx8.gateway.entities.ProductPropertyCategory

  }

  @Transactional
  public void deleteProductPropertyCategory(Long id)
  {
    ProductPropertyCategory category = findProductPropertyCategoryById(id);
    category.setEnabled(false);
    getHibernateTemplate().update(category);
//    getHibernateTemplate().delete(findProductPropertyCategoryById(id));
  }
View Full Code Here

Examples of com.lgx8.gateway.entities.ProductPropertyCategory

    List<ProductPropertyCategory> categorys = getHibernateTemplate().find(hql);
    return categorys;
  }

  public ProductPropertyCategory findProductPropertyCategoryById(Long id) {
    ProductPropertyCategory category = getHibernateTemplate().get(ProductPropertyCategory.class, id);
    return category;
  }
View Full Code Here

Examples of com.lgx8.gateway.entities.ProductPropertyCategory

      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

Examples of com.lgx8.gateway.entities.ProductPropertyCategory

    if("0".equals(categoryId)||categoryId == null)
    {
      gatewayService.createProductPropertyCategory(name);
    }else
    {
      ProductPropertyCategory category = gatewayService.findProductPropertyCategoryById(Long.parseLong(categoryId));
      category.setName(name);
      gatewayService.updateProductPropertyCategory(category);
    }
   
   
   
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.