따로 서비스를 만들지 않고
jparepostiory만을 이용해서 insert를 했는데 잘 작동해서 의구심을 갖게되었다.
관련 내용을 찾아보니
@Repository
@Transactional(readOnly = true)
public class SimpleJpaRepository<T, ID> implements JpaRepositoryImplementation<T, ID> {
private static final String ID_MUST_NOT_BE_NULL = "The given id must not be null!";
private final JpaEntityInformation<T, ?> entityInformation;
private final EntityManager em;
private final PersistenceProvider provider;
private @Nullable CrudMethodMetadata metadata;
private EscapeCharacter escapeCharacter = EscapeCharacter.DEFAULT;
JparRepository의 구현체 안에는 @Transactional을 가지고 있기 때문에 정상 작동한 것이였다.