Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Query Hints - Multiple Formats?(Recommended Practise: Which query hint format should be used?)
Query Hints - Multiple Formats? [message #802139] Sun, 19 February 2012 13:26 Go to next message
Marvin Toll is currently offline Marvin TollFriend
Messages: 30
Registered: July 2009
Member
query.setHint(QueryHints.CACHE_USAGE, CacheUsage.CheckCacheOnly);
query.setHint(CacheUsage.CheckCacheOnly, HintValues.TRUE);

Which of these is preferred? [I believe they perform the same function.]



Marvin Toll
CTO, Pattern Enabled Development
http://PatternEnabled.com
Re: Query Hints - Multiple Formats? [message #804384 is a reply to message #802139] Wed, 22 February 2012 15:11 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member


query.setHint(CacheUsage.CheckCacheOnly, HintValues.TRUE);

Is not a valid hint, so will do nothing.


James : Wiki : Book : Blog : Twitter
Previous Topic:Native ORM & EclipseLink 2.3.2 Multi-Tenancy
Next Topic:Exception Description: Null primary key encountered in unit of work clone
Goto Forum:
  


Current Time: Sun Dec 21 10:43:36 GMT 2014

Powered by FUDForum. Page generated in 0.01598 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software