Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] EclipseLink 2.0 and JPA 2 Cacheable

Caching (2nd level) is enabled by default in EclipseLink, so you do not need
to do anything to configure caching.  If you wish to selectively
enabled/disable caching for specific classes, or configure the cache
settings then you can use the @Cache or @Cacheable annotations, either will
work, although @Cache allows much more to be configured.



wujek.srujek wrote:
> 
> Hi.
> We are starting to use EclipseLink 2.0.0-RC1 (haven't used EL before) and
> we have a strong need for second level caching. JPA 2 specs in 3.7 define
> the basic caching options. How is this handled in EclipseLink 2.0.0?
> Specifically:
> 1. What is the relation between @Cache to JPA 2 @Cacheable? Does
> @Cacheable work or do I need to fall back to native @Cache?
> 2. I found this page:
> http://wiki.eclipse.org/Introduction_to_Cache_%28ELUG%29 and others that
> either link to it or are linked to from this page. But this describes
> session cache and work of unit cache, so basically the thing that JPA
> names persistent context, correct?
> 
> Thanks and regards.
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://old.nabble.com/EclipseLink-2.0-and-JPA-2-Cacheable-tp26622000p26699189.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top