서론
최근 AI의 시대가 열리면서 개인이 빠른 속도로 서비스를 만들 수 있습니다. 그래서 저도 여러 서비스를 만들고 배포하는 과정에서 cloudflare를 사용했었는데요. 프리티어를 사용하면서 만족스러웠던 점과 어떤 상황에서 사용하면 좋을지 추천하려고 이 글을 작성합니다.
JPA 2.6.x 버전 이상부터는 @Procedure를 사용하여 프로시저를 호출 할 때 @Transactional을 사용하지 않으면 에러가 발생합니다.You're trying to execute a @Procedure method without a surrounding transaction that keeps the connection open so that the ResultSet can actually be consumed. Make sure the consumer code uses @Transactional or any other way of declaring a (read-only) transaction.
하지만 그 말은 즉 이전 버전의 JPA에서는 @Transactional을 사용하지 않아도 에러 없이 프로시저를 호출 할 수 있고 예기치 않은 문제가 발생할 수 있습니다.