I am iterating over an ResultSet
and trying to copy its values in an ArrayList
.
The problem is that its traversing only once. But using resul
Just for the fun, I'm offering an alternative solution using jOOQ and Java 8. Instead of using jOOQ, you could be using any other API that maps JDBC ResultSet
to List
, such as Spring JDBC or Apache DbUtils, or write your own ResultSetIterator
:
List
List
(Disclaimer, I work for the company behind jOOQ)