Biblioteca Java - Blame information for rev 14

Subversion Repositories:
Rev:
Rev Author Line No. Line
14 mihai 1 package hm.spring.web.dao;
2  
3 import hm.spring.web.domain.Student;
4  
5 import java.sql.ResultSet;
6 import java.sql.SQLException;
7  
8 import org.springframework.jdbc.core.RowMapper;
9  
10 public class StudentMapper implements RowMapper<Student> {
11    public Student mapRow(ResultSet rs, int rowNum) throws SQLException {
12       Student student = new Student();
13       student.setId(rs.getInt("id"));
14       student.setName(rs.getString("name"));
15       student.setAge(rs.getInt("age"));
16       return student;
17    }
18 }