Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340074 - Wrong string used for Cache Store Mode and Cache Retrieve Mode query hint is incorrect
Summary: Wrong string used for Cache Store Mode and Cache Retrieve Mode query hint is ...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 332357 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-15 14:05 EDT by Gordon Yorke CLA
Modified: 2022-06-09 10:21 EDT (History)
3 users (show)

See Also:


Attachments
Proposed fix, and testcase (13.36 KB, patch)
2011-05-13 17:45 EDT, David Minsky CLA
no flags Details | Diff
Proposed fix, and testcase (15.46 KB, patch)
2011-05-25 13:09 EDT, David Minsky CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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