Package org.springframework.jdbc.core.test

Examples of org.springframework.jdbc.core.test.ConcretePerson


  public void testMappingWithInheritance() throws SQLException {
    List result = jdbcTemplate.query("select name, age, birth_date, balance from people",
        new BeanPropertyRowMapper(ConcretePerson.class));
    assertEquals(1, result.size());
    ConcretePerson bean = (ConcretePerson) result.get(0);
    verifyConcretePerson(bean);
  }
View Full Code Here


  public void testMappingWithNoUnpopulatedFieldsFound() throws SQLException {
    List result = jdbcTemplate.query("select name, age, birth_date, balance from people",
        new BeanPropertyRowMapper(ConcretePerson.class, true));
    assertEquals(1, result.size());
    ConcretePerson bean = (ConcretePerson) result.get(0);
    verifyConcretePerson(bean);
  }
View Full Code Here

  public void testMappingWithInheritance() throws SQLException {
    List<ConcretePerson> result = simpleJdbcTemplate.query("select name, age, birth_date, balance from people",
        ParameterizedBeanPropertyRowMapper.newInstance(ConcretePerson.class));
    assertEquals(1, result.size());
    ConcretePerson bean = result.get(0);
    verifyConcretePerson(bean);
  }
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.core.test.ConcretePerson

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.