File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Caching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Caching" Watch "Caching" New topic


Tayal Rohit

Joined: Feb 18, 2005
Posts: 12
How we can implement Caching of data using Hibernate 3 ?

Example will be good to help.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

Have a look at:
Caching in Hibernate

[My Blog] [JavaRanch Journal]
Orem Hun

Joined: May 24, 2005
Posts: 28
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

Joined: Feb 18, 2005
Posts: 12
thanks a lot.

and whats the major lazy loading?
I agree. Here's the link:
subject: Caching
It's not a secret anymore!