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
- JDBC
- 그리디
- db
- Spring Boot
- springdatajpa
- Greedy
- 인프런
- 스프링 핵심 원리
- Proxy
- 자바
- AOP
- 스프링 핵심 기능
- 스프링
- http
- java
- transaction
- QueryDSL
- Android
- Servlet
- pointcut
- 백준
- spring
- JPQL
- Exception
- jpa
- 알고리즘
- 김영한
- kotlin
- Thymeleaf
Archives
- Today
- Total
목록isNew() (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