コード例 #1
0
 public void save(EmployeeModel model, Long[] roleUuids) {
   Set<RoleModel> roms = new HashSet<RoleModel>();
   for (Long uuid : roleUuids) {
     RoleModel rm = roleDao.findById(uuid);
     roms.add(rm);
   }
   model.setRoles(roms);
   employeeDao.save(model);
 }
コード例 #2
0
 // 废弃
 @Override
 public void save(EmployeeModel model) {
   String pass = model.getUserPass();
   model.setUserPass(MD5Utils.md5(pass));
   employeeDao.save(model);
 }