Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- SpringBoot
- 백준
- jpa
- 김영한
- Thymeleaf
- 스프링 핵심 기능
- Exception
- java
- Greedy
- kotlin
- 스프링 핵심 원리
- spring
- Android
- Servlet
- transaction
- db
- 알고리즘
- pointcut
- springdatajpa
- 스프링
- JDBC
- AOP
- Spring Boot
- Proxy
- QueryDSL
- 자바
- 인프런
- http
- 그리디
- JPQL
Archives
- Today
- Total
목록새로운 엔티티인지 판단 (1)
개발자되기 프로젝트
SpringDataJpa의 구현체
1. SimpleJpaRepository @Repository @Transactional(readOnly = true) public class SimpleJpaRepository ...{ @Transactional public S save(S entity) { if (entityInformation.isNew(entity)) { em.persist(entity); return entity; } else { return em.merge(entity); } } ... } SpringDataJpa의 구현체 @Repository 스프링 빈으로 등록 JDBC/JPA에서 예외가 터지면 Spring에서 사용할 수 있는 예외로 바꿔줌 하부 기술을 바꿔도 예외 처리 메커니즘이 동일하게 유지됨. @Transaction(r..
인프런/[인프런] Spring Data JPA
2021. 8. 31. 22:05