Create ArrayList from Postgresql query
I have following class: public class Person { private String firstName; private String lastName; private List<String> habits; } I have Postgres query which returns me following result using inner join from 2 tables name | lastname| habits -------------------------------------- John |…