Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. 1. Configure Provider class in Hibernate configuration file. 2. Add Cache usage tag ( read-only or read-write ) in mapping files ( hbm ). 3. Create an XML file called ehcache.xml and place in classpath which contains time settings and update settings, behavior of cache , lifetime and idletime of Pojos, how many objects are allowed. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  hibernate   orm   hibernate cache   architecture | ||||
Related Questions | ||||
Difference between first level and second level cache in hibernate ? | ||||
What are some differences between Spring caching and Hibernate caching? | ||||
What are the the methods to clear cache in Hibernate ? | ||||
What are different types of second level cache ? | ||||
Can we disable first level cache ? What should one do if we don't want an object to be cached ? | ||||