Package com.bookstore.service.representation

Examples of com.bookstore.service.representation.OrderRepresentation


   * @param order
   * @return
   */
  private OrderRepresentation createRepresentation(Order order) {
    // Create a representation of the order
    OrderRepresentation orderRep = new OrderRepresentation();
    orderRep.setId(order.getId());
    orderRep.setCustomer(order.getCustomer());
    orderRep.setBillingAddress(order.getBillingAddress());
    orderRep.setShippingAddress(order.getShippingAddress());
    orderRep.setCreditCard(order.getCreditCard());
    orderRep.setShippingCompany(order.getShippingCompany());
    orderRep.setLines(order.getLines());
    orderRep.setPaymentReceived(order.isPaymentReceived());
    orderRep.setOrderState(order.getOrderState());
    setLinks(orderRep);
    return orderRep;
  }
View Full Code Here

TOP

Related Classes of com.bookstore.service.representation.OrderRepresentation

Copyright © 2018 www.massapicom. 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.