Talib Jockey wrote:Why do queryForList(..) methods in the JDBCTemplate class return a List with Maps where the Key=Column Name and Value=Column Value? As I understand it leads to a lot of repetition of column names in the maps. Basically all the Maps will have the same column names, what is the rationale behind returning so many Maps with similar Keys?
Any insight will be appreciated.
Regards,
Talib
i feel it is the best because Programmer no need to bother on the order so i can get the value by passing the column name and when you iterate you need to concentrate on order of data accordingly you generated the query. more over you can get what ever the column data on without iteration.
can i know what is your prefered approch.