설계1 다양한 Application Service 설계 방식들 한 서브 도메인의 기능을 담당하는 하나의 Service 클래스 가장 일반적인 방법으로 서브 도메인 관련 기능을 하나의 Service 클래스에서 처리하는 것이다. @Service class PostingService( private val postingRepository: PostingRepository, ) { @Transactional fun postPosting(command: PostPostingCommand): Posting { val posting: Posting = command.toEntity() return this.postingRepository.save(entity = posting) } @Transactional fun modifyPosting(command: ModifyPosting.. 2022. 8. 14. 이전 1 다음