The Hibernate L1 cache stores objects by primary key. This means that if you load the same object using load()or get()(I think this also applies to simple queries like:) from Document d where d.id=2, it will be cached.
, L2. , , L1 ( , ), SQL- .
. :