Package com.yummynoodlebar.persistence.domain

Examples of com.yummynoodlebar.persistence.domain.OrderStatus


  }

  @Override
  public OrderStatusEvent setOrderStatus(SetOrderStatusEvent event) {

    OrderStatus status = OrderStatus.fromStatusDetails(event.getOrderStatus());

    status = orderStatusRepository.save(status);

    return new OrderStatusEvent(status.getId(), status.toStatusDetails());
  }
View Full Code Here


  }

  @Override
  public OrderStatusEvent setOrderStatus(SetOrderStatusEvent event) {

    OrderStatus status = OrderStatus.fromStatusDetails(event.getOrderStatus());

    status = orderStatusRepository.save(status);

    return new OrderStatusEvent(status.getId(), status.toStatusDetails());
  }
View Full Code Here

  }

  @Override
  public OrderStatusEvent requestOrderStatus(RequestOrderStatusEvent requestOrderDetailsEvent) {
   
    OrderStatus orderStatus = orderStatusRepository.findLatestById(requestOrderDetailsEvent.getKey());

    if (orderStatus == null) {
      return OrderStatusEvent.notFound(requestOrderDetailsEvent.getKey());
    }

    return new OrderStatusEvent(requestOrderDetailsEvent.getKey(), orderStatus.toStatusDetails());
  }
View Full Code Here

TOP

Related Classes of com.yummynoodlebar.persistence.domain.OrderStatus

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.