order = orderRepository.saveAndFlush(order);
return order;
}
public Order get(Long id) {
return orderRepository.findOne(id);
<BUG>}
public Order update(Order order) {</BUG>
Assert.notNull(order.getIdentity(), "Order id must be present in the resource URL");
Assert.notNull(order, "Order request body cannot be null");
Assert.state(orderRepository.exists(order.getIdentity()),

order = orderRepository.saveAndFlush(order);
return order;
}
public Order get(Long id) {
return orderRepository.findOne(id);
}
@Transactional
public Order update(Order order) {
Assert.notNull(order.getIdentity(), "Order id must be present in the resource URL");
Assert.notNull(order, "Order request body cannot be null");
Assert.state(orderRepository.exists(order.getIdentity()),
