Hibernate uses first level cache by default and cache the queries or i say entities for a session.
But what about projection. Lets say i have fired a join query from 3 table and get a small projection of it. How will first level cache be used here?
I mean first level cache on domain recognise the entities by Id field, but there is Id field in projection? So does hibernate first level cache does not work when uses projection?
FYI : As per my knowledge, first level cache recognise entities by Id field(primary key), please correct me if i am wrong.