Newsletter:

(Source Code) How to get whole record of a table into a java List

Source Code : How to get whole record of a table into a java List

Code:

public List getList() {

     jt = new JdbcTemplate(dataSource);
     List rows = jt.queryForList("select * from persone");
     return rows;
}

Courtesy:- Java-forums.org