// ... other methods without annotations unchanged since listing 11.x public void deleteOrder(Long orderId) { orderRepository.delete(orderRepository.find(orderId)); }
@Transactional(readOnly = true) public Order findOrder(Long orderId) { return orderRepository.find(orderId); }