Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332357 - Property names for cache hints does not conform to JPA 2.0
Summary: Property names for cache hints does not conform to JPA 2.0
Status: CLOSED DUPLICATE of bug 340074
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 272748 349198
Blocks:
  Show dependency tree
 
Reported: 2010-12-11 08:52 EST by Stefan Röper CLA
Modified: 2022-06-09 10:25 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Röper CLA 2010-12-11 08:52:00 EST
Build Identifier: 

The property name for the cache hint
javax.persistence.cacheStoreMode should be javax.persistence.cache.storeMode
javax.persistence.cacheRetrieveMode should be javax.persistence.cache.retrieveMode
according to the javadoc api for javax.persistence.CacheStoreMode and javax.persistence.CacheRetrieveMode

The constants for both property names are declared in org.eclipse.persistence.config.QueryHint

It is very confusing to use the JPA suggested property names and to see that they have no effect at all. Either both should be supported (preferable) or at least the standard names from JPA should do the Trick. Most eclipseLink users might use QueryHints.CACHE_RETRIEVE_MODE or QueryHints.CACHE_STORE_MODE but to be independent from the JPA Implementation one should use the JPA property names directly.

Reproducible: Always
Comment 1 Stefan Röper CLA 2010-12-11 08:57:45 EST
Javadoc JPA 2.0 Package Overview javax.persistence for the reference to the JPA property names (see Enum Summary, CacheRetrieveMode and CacheStoreMode)
http://download.oracle.com/javaee/6/api/javax/persistence/package-summary.html
Comment 2 Tom Ware CLA 2010-12-23 11:41:41 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 3 Doug Clarke CLA 2011-06-13 10:51:28 EDT
This got missed for 2.3.0 but is being targeted for 2.3.1.

Logged Bug 349198 to add this to the known issues for 2.3.0 in the new & noteworthy page.
Comment 4 Doug Clarke CLA 2011-06-21 10:07:16 EDT
Fixed by Bug 340074 in 2.3.0

*** This bug has been marked as a duplicate of bug 340074 ***
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:15:10 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:25:38 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink