This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 9953

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?
Don't get me started about those stupid light bulbs.
subject: Caching
Similar Threads
Session Management problem in Struts
When JSP page is compiled?
Strange Browser problem
I need help on developing login/logout application using struts2 frame work
Hyperlink to Servlet