Created
December 21, 2025 03:45
-
-
Save msbaek/afabcfa19db043a62a9ae76563f50f3b to your computer and use it in GitHub Desktop.
도메인 서비스가 JpaRepository에 직접 의존
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 도메인 서비스가 JpaRepository에 직접 의존 | |
| @Service public class OrderService { | |
| private final OrderRepository orderRepository; // JpaRepository 상속 | |
| public void createOrder(OrderRequest request) { | |
| // 도메인 로직이 JPA에 종속됨 | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment