reset password
Author Message
talisunep
Posts: 140
Posted 00:09 Mar 11, 2013 |

professor whats the best approach when  using  two  ResultSet rs for executing two sql queries in the controller servlets? 
Should we add it to one list or create seperate lists for each ResultSets?
 

cysun
Posts: 2935
Posted 09:24 Mar 11, 2013 |

I'm not quite sure what you meant by that, but generally speaking it depends on your model class design, e.g. whether you just have one List<Project> (and each Project has its own List<Reward>), or a List<Project> and a separate List<Reward>.