문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
java:jpa:cache [2015/03/17 00:31] kwon37xi [Evict All] |
java:jpa:cache [2015/10/17 12:07] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== JPA Second Level Cache ====== | ====== JPA Second Level Cache ====== | ||
+ | * [[java: | ||
* Hibernate 4 기반으로 살펴보는 JPA2 Second Level Cache. | * Hibernate 4 기반으로 살펴보는 JPA2 Second Level Cache. | ||
* 아직까지 살펴본바로는, | * 아직까지 살펴본바로는, | ||
줄 8: | 줄 9: | ||
전체 리젼을 다 evict하려면 Hibernate의 '' | 전체 리젼을 다 evict하려면 Hibernate의 '' | ||
+ | 관련 구현은 [[https:// | ||
+ | |EntityManagerFactoryImpl.java]]에 있다. | ||
+ | |||
<code java> | <code java> | ||
// JPA 2.0사용시 | // JPA 2.0사용시 | ||
줄 20: | 줄 24: | ||
cache.evictEntityRegions(); | cache.evictEntityRegions(); | ||
cache.evictQueryRegions(); | cache.evictQueryRegions(); | ||
- | cache.evictDefaultQueryRegion(); | ||
cache.evictCollectionRegions(); | cache.evictCollectionRegions(); | ||
</ | </ | ||
+ | |||
+ | ===== 참고 ===== | ||
+ | * [[http:// | ||