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
- http
- Android
- 스프링 핵심 원리
- 백준
- SpringBoot
- java
- QueryDSL
- pointcut
- Exception
- JPQL
- 자바
- springdatajpa
- db
- transaction
- jpa
- kotlin
- AOP
- JDBC
- Proxy
- Servlet
- 알고리즘
- Spring Boot
- 스프링
- 그리디
- 김영한
- Thymeleaf
- 스프링 핵심 기능
- spring
- 인프런
- Greedy
Archives
- Today
- Total
목록exists (1)
개발자되기 프로젝트
Repository 제공 기능 2
1. flush() flush() : JPA context에 있는 DB값을 DB에 적용하도록 함. @Test @Transactional void crud(){//create, read, update, delete userRepository.save(new User("new hyun", "newHyun@ddd.com")); userRepository.flush(); userRepository.findAll().forEach(System.out::println); } 2. saveAndFlush() save() 와 flush() 를 합한 method로 추가적인 flush() method 사용 절차가 필요 없다. @Test @Transactional void crud(){//create, read, updat..
JPA
2021. 5. 23. 17:52