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