Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about hibernate caching and criteria

 
vasu chowdary
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to hibernate .My doubt is how to use hibernate caching in hibernate criteria?Generally hibernate caching is used when ever we want to persist the data or update the data or read the data.if i want to read the data with criteria how can i mention to my criteria to fetch the data from cache?
 
Sue Temple
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Section 15.9. Queries by natural identifier - Hibernate Guide
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Direct link to mentioned section.

The more general answer is that it depends what you're actually asking. You might want to read up on:

Improving performance (specifically the several caching sections)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic