Upgrade
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

RE: QueryHints.RESULT_TYPE, ResultType.Map

by jamesssss posted Aug 8 2014, 8:33

Hi Montechristos,

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

https://www.eclipse.org/eclipselink/api/2.4/org/eclipse/persistence/config/QueryHints.html#RESULT_TYPE

https://www.eclipse.org/eclipselink/api/2.4/org/eclipse/persistence/config/ResultType.html

The hints are just strings so,

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


will work as well.


Id: 222258
Tags: query hints, jpa, eclipselink, map
Posted: Aug 8 2014, 8:33
Updated: Aug 8 2014, 8:34
Replies: 0
Views: 3083, today: 6, week: 16, month: 31
I'm sure
Flag graphic as offensive, or in violation of site rules