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

Persistent Context Cache

A collection of 2 posts

Flushing

Hibernate 에러 공유 1

2008-03-24 12:35:49,674 WARN [org.hibernate.util.JDBCExceptionReporter] – <SQL Error: 0, SQLState: null>2008-03-24 12:35:49,674 ERROR [org.hibernate.util.JDBCExceptionReporter] – <Batch entry 0 insert into Material (cdate, itemcnt, itemtypecnt, month, purprice, suppid, udate, materialid) values (2008-03-24 12:35:49.659000

  • 백기선
백기선 Mar 24, 2008 • 2 min read
FetchMode

하이버네이트 API : Persistence context 관리하기

Persistence Context 캐시 제어하기 Persistent 객체들의 스냅샷들을 캐시에 복사해둔다. 이 캐시들을 사용하여 dirty checking을 하여 persistent 객체들의 변경 사항들을 찾아낸다. 수천개의 객체들을 로딩하면, OutOfMemoryException을 내고 죽어버릴 수가 있다. 캐시를 줄이거나 메모리 공간을 제약하려면 다음과 같이 해야 한다. 필요한 객체만 Persistent 상태로 유지하라. 전체 객체 그래프를 모두 끌어오다가는… session.evict(

  • 백기선
백기선 Mar 11, 2008 • 2 min read
Whiteship © 2022
Powered by Ghost