openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Gonzalez <>
Subject Re: Portable way to use query cache
Date Wed, 23 Jan 2013 18:41:15 GMT
Thanks for the link.

I didn't catch the following line first time i read it : 
Caching is not used when the data cache does not have any cached data for an id in a query

So in Open JPA, query cache is active if all resulting entities from thje query are themselves
cacheable (i.e. annotated with @Cacheable).
This makes a cacheable query hint unnecessary with OpenJPA then.

Thanks once more for the clarification and sorry for the noise.

----- Mail original -----
De : Jesse Farinacci <>
À :; Adrian Gonzalez <>
Cc : 
Envoyé le : Mercredi 23 janvier 2013 15h51
Objet : Re: Portable way to use query cache


On Wed, Jan 23, 2013 at 4:38 AM, Adrian Gonzalez <> wrote:
> I'm a newbie with openJPA, I would like to know what's the best way to do query caching
(in a JPA 2.x portable way).
> My webapp will run on JBoss 7.x (Hibernate) and Websphere 8 (OpenJPA).


There are 10 types of people in this world, those
that can read binary and those that can not.

View raw message