In my application we are using resultset to query data base and then construct an object something like item.setType(resultset.getString(TYPE)); item.setValue(resultset.getString(PRICE)); Now the problem is that my Item class has around 120 fields and I don't want to write 120 lines of code just to set the values. Do we have any cleaner and compact approach ?
Aucun commentaire:
Enregistrer un commentaire