public class User{
public String name;
public List<Phone> 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?
怪我咯2017-05-17 10:00:27
jdbcTemplate is for JDBC, which is different from the ORM framework and requires manual programming!