How can I map a resultset from a few tables into a complex object? let me elaborate:
Lets say I have these 2 classes:
public class User { private int
Maybe try something like this:
ArrayList users = new ArrayList(); while(resultSet.next) { users.add(new User(resultSet.getString("id"), resultSet.getString("fname"), resultSet.getString("lname")); //you can also add your countries to an array list }