aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate Caching Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Caching Query" Watch "Hibernate Caching Query" New topic
Author

Hibernate Caching Query

Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 130
In Hibernate, we have two levels of caching.

1. First level of cache is maintained at Session level. So, it will be unique for each and every request i.e. session.

2. Second level of cache is maintained at SessionFactory level.

So, my query is that the second level caching can be used only for the objects which are common across all the users i.e. only one per application. Is it true? Please confirm. It is like an object in applicationcontext only (as per semantics we can think of).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Caching Query
 
Similar Threads
How session is getting in hibernate?
Hibernate beginner
what is second level hibernate cache?
Hibernate: schema export unsuccessful java.sql.SQLTransientConnectionException: java.net.ConnectExce
Compression