Spring JPAとEntityManagerのイメージ

Spring JPA永続化コンテキスト入門 - EntityManagerとキャッシュの仕組み

永続化コンテキスト(Persistence Context)の概念、EntityManagerのライフサイクル、1次キャッシュの動作、エンティティの4つの状態(New、Managed、Detached、Removed)、ダーティチェックによる自動更新の仕組みを解説します。