Forums Register Login

custamize List of object of arrays

+Pie Number of slices to send: Send
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..
please buy my thing and then I'll have more money:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 740 times.
Similar Threads
Castor: How to map list items within a "parent" list element?
Passing ArrayList of objects between action classes
Linked List equals method
Implementing ArrayList class manually
Setting an object with c:set from sessionScope
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:03:31.