java - Multilistmap - getting data from resultset -
i using linkedlistmultimap store values resultset .
//map declaration: listmultimap<string, string> multimap = linkedlistmultimap.create(); while(rs.next()) { multimap.put(address,name); }
database values :
add1 phalani add1 vaishu
when resultset stores data ,for same key both values stored. output of multi map : {add1=[vaishu ,phalani]}
but output expect : {add1=[phalani,vaishu]} same stored in database .what can done.
Comments
Post a Comment