TransPort_Tracking
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.bestray.transtracking.dao.mapper;
import com.bestray.trastrack.domain.Code;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
/**
*
* @author Girija Sahu
*/
public class CodeMapper implements RowMapper<Object> {
public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
Code code = new Code();
code.setId(rs.getLong("id"));
code.setName(rs.getString("name"));
return code;
}
}
|
Revision |
Author |
Commited |
Message |
1
|
girijabapi
|
Sat 28 Jul, 2018 05:29:14 +0000 |
|