Skip to content

Commit

Permalink
refactor: @transactional 중첩 제거
Browse files Browse the repository at this point in the history
트랜잭션이 중첩되어 전파되는 것을 방지합니다
  • Loading branch information
sa46lll committed Dec 24, 2023
1 parent 683cd05 commit 44e0db3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public ReadExtensionPersistenceAdapter(BlockedExtensionRepository blockedExtensi
public List<BlockedExtension> findAll() {
return blockedExtensionRepository.findAll().stream()
.map(BlockedExtensionMapper::toDomain)
.toList());
.toList();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
import com.flow.sa46lll.fileshield.entity.ExtensionTypeEntity;
import com.flow.sa46lll.fileshield.repository.BlockedExtensionRepository;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Transactional
public class WriteExtensionPersistenceAdapter implements WriteExtensionPersistencePort {

private final BlockedExtensionRepository blockedExtensionRepository;
Expand Down

0 comments on commit 44e0db3

Please sign in to comment.