🔙뒤로가기

준영속 상태란?

준영속 상태로 만드는 방법

em.detach(entity) : 특정 엔티티만 준영속 상태로 전환

em.clear() : 영속성 컨텍스트를 완전히 초기화

em.close() : 영속성 컨텍스트를 종료