Thanks for the help, for anyone that reads this message stream I have
switched from the JDBC code to using the JDBCTemplate, my new DAO class is
as follows:

public class CategoryDao implements ICategoryDao {

        private JdbcTemplate jt;        
        
        public void setDataSource(DataSource dataSource) {
                this.jt = new JdbcTemplate(dataSource);
        } 
        
        public List getAllCategories() {
        
                List results = this.jt.query(
                        "SELECT Category_ID, Category FROM Category",
                        new RowMapper() {
                                public Object mapRow(ResultSet rs, int rowNum) 
throws SQLException {
                                        return new 
Category(rs.getInt("Category_ID"),
rs.getString("Category"));
                                }
                        });

                return results;
        }
}

And it works perfectly.
-- 
View this message in context: 
http://www.nabble.com/ListChoice-Crashing-on-13th-Load-tp17672729p17687430.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to