WeightClass weightClass = new WeightClass();
List<Language> languages = languageAdminModel.getList(new PageParam());
List<WeightClassDesc> descs = new ArrayList<WeightClassDesc>();
for(Language language: languages){
WeightClassDesc desc = new WeightClassDesc();
desc.setLanguageId(language.getId());
desc.setLanguageName(language.getName());
desc.setLanguageImage(language.getImage());
descs.add(desc);
}
weightClass.setDescs(descs);
model.addAttribute("weightClass", weightClass);