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

Caching

 
Tayal Rohit
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How we can implement Caching of data using Hibernate 3 ?

Example will be good to help.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at:
Caching in Hibernate
 
Orem Hun
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate 3.x default functionality supports transaction level caching. For second-level caching (process or cluster-scope) you would have to use another cache provider such as EHCache or JBoss cache. You have to brainstorm first whether you really need second-level cache. I recommend Gavin King, Christian Bauer's book: Java Persistence API, which has one full section on Hibernate caching with examples.
 
Tayal Rohit
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot.

and whats the major lazy loading?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic