Sign In : Sign Up : Blog : Search: Language : Help :
This website is now frozen, please migrate your content to BotLibre.com or BotLibre.biz
Java Persistence Performance

QueryHints.RESULT_TYPE, ResultType.Map

by Montechristos posted Aug 7 2014, 9:18

Hi James,

I saw an old post of yours about EclipseLink and how to hint it to return a map.

Now I am trying to use that in Netbeans8, but I cannot find the classes QueryHints and ResultType. Do I need a specific version of EclipseLink?

Many thanks,

by jamesssss posted Aug 8 2014, 8:33
Hi Montechristos,

QueryHints and ResultType are in the org.eclipse.persistence.config package.



The hints are just strings so,

query.setHint("eclipselink.result-type", "Map");

will work as well.

Updated: Aug 8 2014, 8:34
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 3083, today: 6, week: 16, month: 31

Id: 222251
Posted: Aug 7 2014, 9:18
Replies: 1
Views: 2829, today: 2, week: 6, month: 19
I'm sure
Flag graphic as offensive, or in violation of site rules