Whiteship
  • Home
  • 인프런 강의
  • Java
  • Spring
  • JPA
  • SDE Tips
Subscribe

Persistence Context Cache

A collection of 1 post
automatic dirty checking

Persistence Context

특징 * 관리하고 있는 엔티티 개체에 대한 캐시라고 생각할 수 있다. * 하이버네이트에서는 하나의 Session이 하나의 내부 Persistent Context를 가지고 있다고 한다. * JP에서는 하나의 EntityManager가 하나의 Persistent Context를 가지고 있다. * Persistent 상태의 모든 엔티티들은 이 컨텍스트 안에 캐시된다. * 이 녀석이 유용한 이유 1. 하이버는 automatic dirty checking과 transactional write-behind를 할 수 있다.
Feb 24, 2008 — 4 min read
Whiteship © 2022
Powered by Ghost