Skip to content
Advertisement

Java JOOQ parse query to ArrayList with object

I have a problem. I am using JOOQ, with that I created the following query:

JavaScript

Now I also have the following class:

JavaScript

Now I want the result of the query to be parsed to an ArrayList<Candlestick>. I found this page: https://www.jooq.org/doc/3.0/manual/sql-execution/fetching/arrays-maps-and-lists/ that shows how to parse the result to a List, bu that is for a specific column of the select. I want to parse the entire object.

How can I achieve this?

Advertisement

Answer

You can use

JavaScript

instead of

JavaScript

That will give you a collection of Canldestick.

Advertisement