public class User{ public String name; public List phones; } public class Phone{ public String name; }
Can I use jdbcTemplate to map the result set to the above complex objects (that is, an object is also associated with an object or a collection of objects)? If you don't use mybatis or hibernate, is there any other way to facilitate mapping?
jdbcTemplate is for JDBC, which is different from the ORM framework and requires manual programming!