Examples of ProductExample


Examples of org.company.recordshop.domain.ProductExample

   *
   * @return {@link ProductExample}, the resulting businessclass object.
   */
  public ProductExample exampleFromDto(final ProductWithCustomersDto source) {
    Assert.notNull(source, "argument [source] may not be null");
    ProductExample result = new ProductExample();

    if (source.getProductNumber() != null) {
      result.setProductNumber(source.getProductNumber());
    }
    if (source.isOrderable() != null) {
      result.setOrderable(source.isOrderable());
    }
    if (source.getPrice() != null) {
      result.setPrice(source.getPrice());
    }

    return result;
  }
View Full Code Here

Examples of org.company.recordshop.domain.ProductExample

   *
   * @return {@link ProductExample}, the resulting businessclass object.
   */
  public ProductExample exampleFromDto(final FullProductDto source) {
    Assert.notNull(source, "argument [source] may not be null");
    ProductExample result = new ProductExample();

    if (source.getProductNumber() != null) {
      result.setProductNumber(source.getProductNumber());
    }
    if (source.getPrice() != null) {
      result.setPrice(source.getPrice());
    }
    if (source.isInStock() != null) {
      result.setInStock(source.isInStock());
    }
    if (source.isOrderable() != null) {
      result.setOrderable(source.isOrderable());
    }
    if (source.getMinimalQuantity() != null) {
      result.setMinimalQuantity(source.getMinimalQuantity());
    }

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