728x90
JPA 프레임 워크
Tier (티어)
- client
- presentatinon
- business
- peristent : Mybatis, JPA
- legacy
JPA = java persistence api 자바 영속성 API
이전엔 Hibernate 가 있었으나 자바에서 표준으로 받아들여서 내장화한게 JPA이다
Mybatis 는 xml로 빼서 쿼리를 요청하기 때문에 : SQL Mapping 프레임워크라고 본다 => @Mapper 처리해줌
JPA는 코드를 자동으로 만들어준다.
JPA 는 interface 로 작성하면 되며, 내장된 함수에서는 @Repository 로 구현클래스가 구현되어있다.
728x90
'Web > spring' 카테고리의 다른 글
[Task Execution and Scheduling] @Scheduled annotation (2) | 2023.11.22 |
---|---|
[Task Execution and Scheduling] TaskExecutor (0) | 2023.11.21 |
[Spring] Assertions in JUnit 4 and JUnit 5 (0) | 2023.04.25 |
[Spring] A Spring Custom Annotation for a Better DAO (0) | 2023.04.24 |
[Spring] Testing @Cacheable on Spring Data Repositories (1) | 2023.04.24 |