I have some understanding about how this first level and second level caching is used in hibernate. There are lot of questions related to this- yes I agree
But my confusion is. In first level caching , until unless I commit the transaction, my data will not be persisted in db and so other session will not come to know this changes before that. If second level caching brings entities to session factory level! Does it mean my changes in one session can b used by other sessions even before I commit the transaction??
And when will the update to dB happens while using second level caching ?? in 1st it will happen while ending transaction
I referred many discussions in this topic and I don’t find exact answers!!