Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] JPA caching of ResultSets only?

Hi Polyphenol,

You can achieve this with the following query hints:

- javax.persistence.cache.retrieveMode
- javax.persistence.cache.storeMode

Which accept the following JPA enums
 - CacheStoreMode (USE, BYPASS, REFRESH)
 - CacheRetrieveMode (USE, BYPASS)

Cheers,
Guy


On 27/09/2011 5:15 AM, polyphenol@xxxxxxxxxxxx wrote:
Is it possible to configure EclipseLink so that:

1) commits to the DB aren't cached
and
2) reads from the DB are cached?


Background:
I have a table where some columns are filled by the DB server via 
triggers. With caching enabled EclipseLink doesn't fetch those if 
the rows are still in the cache and thus returns invalid values. 
Caching for this table is otherwise correct and very useful.

Polyphenol

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users

Back to the top