在这样的方法中,事务是否会应用于lambda内的所有orderLineRespository.insertOrderLine()调用?
@Transactional
public OrderResponse createOrderTransactional(Order order) {
checkForSomething(customerOrder);
order.getOrderLines().forEach(line -> orderLineRepository.insertOrderLine(line);
return new OrderResponse(order, true);
}