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

custamize List of object of arrays

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am getting a list of Object array
Query query =JPA.em().getNativeQuery(query);
List <Answer> listAnswer= query.getresultlist(); // here I am getting

list of object array

list-> [0]
Object[25]
---25 elements


[1]
Object[25]
---25 elements


[2]
Object[25]
---25 elements


and so on till 1501 record

Now I want to customize this list into my own custom version which is type of answer class... Previously i was using naming query which is giving me TypedQuery and Answer type list in result... how could I do this... I tried to iterate this list of object array and add it to my own custom class list but no luck..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic