A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Object Relational Mapping
Hibernate second level cache
Joined: May 18, 2005
Oct 24, 2013 22:28:19
I came across following statement:
Second level cache is an optional cache and first-level cache(session) will always be consulted before any attempt is made to locate an object in the second-level cache.
Suppose i have enabled 2nd level cache, using EHCache. Now i save an object O by saying session.save(O). The object O is stored in session. Will it also be stored in second level cache.
Thanks in advance.
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
I agree. Here's the link:
subject: Hibernate second level cache
Hibernate Second Level Cache
Loading proxy without hitting database
Advantages of ORM?
Difference between Session Cache for load and query cache ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014