I am using JdbcTemplate
to retrieve a Bean from the db. Here is my method:
public List getTrackerData() {
return List
Implementing Bean RowMapper Interface and maprow function solve this problem
public class Mmitrackerv3LivedataMapper implements RowMapper {
@Override
public Mmitrackerv3Livedata mapRow(ResultSet rs, int rowNum)
throws SQLException {
}
And Now I have Change In JDBC Template
List live = jdbcTemplate.query("select * from mmitrackerv3_livedata mlive " +
"join mmitrackerv3_device mdevice on mlive.accountid = mdevice.accountid where mlive.accountid = " +
aid, new Mmitrackerv3LivedataMapper());
Thanks @abhishek