Bug 288034 - javax.persistence.cache.storeMode support at persistence unit level
Summary: javax.persistence.cache.storeMode support at persistence unit level
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-29 15:17 EDT by Michael Keith CLA
Modified: 2022-06-09 10:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Keith CLA 2009-08-29 15:17:01 EDT
When people want refreshing (as is often the case) then they need some easy way to turn it on. JPA 2.0 defines a property that we already have to support when it is passed into queries, etc, (javax.persistence.cache.storeMode) but we should allow it so be set as a persistence unit property as well (for all classes and for a particular entity class).

E.g. 
<property name="javax.persistence.cache.storeMode"
          value="CacheStoreMode.REFRESH"/>

or

<property name="javax.persistence.cache.storeMode.Employee"
          value="CacheStoreMode.REFRESH"/>

The spec currently supports setting it on any EM:

em.setProperty("javax.persistence.cache.storeMode, CacheStoreMode.REFRESH);

Setting it as a punit property would be equivalent to doing this on every entity manager created from the corresponding EMF.
Comment 1 Tom Ware CLA 2009-09-03 09:15:00 EDT
Setting target and priority.  To see what these settings mean see:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 Peter Krogh CLA 2009-11-27 13:41:35 EST
This bug fix did not make the cut off for 2.0.0. We are deferring the bugs to Future where we can properly sort them all together based on community votes and severity. We will then assign them accordingly to future patch sets and releases.
Comment 3 Peter Krogh CLA 2009-11-30 11:37:24 EST
Changing the priority of the bugs that have been recently triaged to future.  Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:22:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink