Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with query getResultList object

 
Milutin Markovic
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Now I have list of objects. Every object in list have Integer name and String id. How can I get Integer and String from Object



Thanks for reading, thanks for any help. I think that is not difficult but i don't know how to google that.
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you select multiple attribute values in JPQL they are returned as an Object[].

i.e.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic