my dog learned polymorphism*
The moose likes Object Relational Mapping and the fly likes What is isGettable method in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "What is isGettable method in hibernate " Watch "What is isGettable method in hibernate " New topic
Author

What is isGettable method in hibernate

lavnish lalchandani
Ranch Hand

Joined: Feb 28, 2007
Posts: 79
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


lavnish.blogspot.com
 
 
subject: What is isGettable method in hibernate
 
Similar Threads
Need help with implementing PUT annotation in my REST service
Connecting to multiple Databases using Hibernate
Query about save(), saveorupdate(), update(), lock() and merge() methods
Difference between Session Cache for load and query cache ?
How to knock out StaleStateException