Created
December 21, 2025 03:47
-
-
Save msbaek/99b46c40ecad6fbb7294f2c3ef0a2c9a to your computer and use it in GitHub Desktop.
jpa-wrapper
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
| // 순수 인터페이스 (도메인 계층) | |
| public interface OrderRepository { | |
| Order save(Order order); | |
| Optional<Order> findById(Long id); | |
| } | |
| // JPA 구현체 (인프라 계층) | |
| @Repository | |
| public class JpaOrderRepository implements OrderRepository { | |
| private final OrderJpaRepository jpaRepository; | |
| // ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment