A bit about hibernate cache
One of the common mistakes when using hibernate is to think: “no problem, hibernate handles the cache for me”. Wrong! By default hibernate does not cache anything. Well, as far as I understand it cache things in the session cache, but this is usually not relevant. First here is what cache refers to in hibernate: session cache, enabled by default, but with a lifetime equals to the session second-level cache, controlled by: hibernate....