Skip to content
Advertisement

List of array object iteration in java 8

I am setting the type for sql query result set as List in java. I am trying to convert it into a dto. When I see the List<Object[]> structure from query. It shows

So is this expected. How can I access the object values here(jjj,8787…) by setting it to dto.

I tried something like this

This is not correct as I am not able to access the object Should I do another level of iteration in order to reach that object or is my generic type for result set is right

Thanks

Advertisement

Answer

Try this:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement