Examples of ConcretePerson


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

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

  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

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

  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
Copyright © 2018 www.massapi.com. 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.