Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is isGettable method in hibernate

 
lavnish lalchandani
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Have been going thru this
http://apmblog.compuware.com/2009/03/24/understanding-caching-in-hibernate-part-three-the-second-level-cache/#.UMyKcG9wfJI
Here in the end example is like



And in explanation the author says that the result is not picked from cache BUT from DB reason being ... isGettable() method returns false ... i am not sure what is this method ? defined in which standard class or interface ?? AND what to do to make it true / false ??
doing some further research found this
http://javasourcecode.org/html/open-source/hibernate/hibernate-3.6.10/org/hibernate/cache/ReadWriteCache.Lockable.html
But still my questions remain same
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic