Пример #1
0
 @Override
 public void remove(String ids) {
   for (String id : ids.split(",")) {
     Trole t = roleDao.get(Trole.class, id);
     if (t != null) {
       roleDao.delete(t);
     }
   }
 }
Пример #2
0
 private void del(Tmenu r) {
   Set<Tmenu> s = r.getTmenus();
   if (s != null && !s.isEmpty()) {
     for (Tmenu t : s) {
       del(t);
     }
   }
   menuDao.delete(r);
 }