search

Home  >  Q&A  >  body text

Does jdbcTemplate support mapping of complex objects?

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?

PHPzPHPz2746 days ago718

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-17 10:00:27

    jdbcTemplate is for JDBC, which is different from the ORM framework and requires manual programming!

    reply
    0
  • Cancelreply