Package org.springframework.jdbc.core.test

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


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


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

TOP

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

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.