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