Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340074

Summary: Wrong string used for Cache Store Mode and Cache Retrieve Mode query hint is incorrect
Product: z_Archived Reporter: Gordon Yorke <gordon.yorke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david.minsky, s.roeper, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix, and testcase
none
Proposed fix, and testcase none

Description Gordon Yorke CLA 2011-03-15 14:05:50 EDT
The specification designates "javax.persistence.cache.retrieveMode" and "javax.persistence.cache.storeMode" as the strings to be used.  EclipseLink incorrectly uses a string from an earlier version of the specification "javax.persistence.cacheRetrieveMode" and "javax.persistence.cacheStoreMode"

Considering these hints have been arround for a while EclipseLink should support both going forward.
Comment 1 David Minsky CLA 2011-05-13 17:45:04 EDT
Created attachment 195635 [details]
Proposed fix, and testcase
Comment 2 David Minsky CLA 2011-05-25 13:09:15 EDT
Created attachment 196578 [details]
Proposed fix, and testcase

Added deprecation warning and correct parameter code when the following parameters are used:

javax.persistence.cacheRetrieveMode
javax.persistence.cacheStoreMode
Comment 3 David Minsky CLA 2011-05-31 14:23:33 EDT
2.3 checkin permission ok
Checked into trunk (2.3) at revision: 9484
Reviewed: Gordon Yorke
Comment 4 Doug Clarke CLA 2011-06-21 10:07:16 EDT
*** Bug 332357 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:21:16 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink