Examples of ProductGroup


Examples of org.sab.invsys.persistence.model.product.ProductGroup

  public ProductGroupUI findByGroupName(String groupName) {
    return mapper.toUIBean(repository.findByGroupName(groupName));
  }

  public ProductGroupUI update(ProductGroupUI uiBean) {
    ProductGroup existing = repository.findByGroupName(uiBean
        .getGroupName());

    if (existing == null) {
      return null;
    }

    existing.setDescription(uiBean.getDescription());

    ProductGroup saved = null;

    try {
      saved = repository.save(existing);
    } catch (Exception e) {
      logger.error(e);
View Full Code Here

Examples of org.sab.invsys.persistence.model.product.ProductGroup

    return mapper.toUIBean(saved);
  }

  public Boolean delete(ProductGroupUI uiBean) {
    ProductGroup existing = repository.findByGroupName(uiBean
        .getGroupName());

    if (existing == null) {
      return false;
    }
View Full Code Here

Examples of org.sab.invsys.persistence.model.product.ProductGroup

    return ui;
  }

  public ProductGroup toPersistenceBean(ProductGroupUI ui) {
    ProductGroup group = null;

    if (ui != null) {
      group = new ProductGroup();

      group.setCreateadBy(ui.getCreateadBy());
      group.setCreatedDate(ui.getCreatedDate());
      group.setDescription(ui.getDescription());
      group.setId(ui.getId());
      group.setModifiedBy(ui.getModifiedBy());
      group.setModifiedDate(ui.getModifiedDate());
      group.setGroupName(ui.getGroupName());

    }
    return group;
  }
View Full Code Here

Examples of org.sab.invsys.persistence.model.product.ProductGroup

      product.setModifiedBy(uiBean.getModifiedBy());
      product.setModifiedDate(uiBean.getModifiedDate());
      product.setPrice(uiBean.getPrice());
      product.setProductName(uiBean.getProductName());

      ProductGroup group = new ProductGroup();
      group.setGroupName(uiBean.getProductGroup());
      product.setGroup(group);

    }
    return product;
  }
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.