Пример #1
0
 @Override
 public boolean isTypeExist(NoteType noteType) {
   if (noteType.getId() == null) {
     return !typeDAO.selectByNameParentType(noteType).isEmpty();
   } else {
     return !typeDAO.selectByParentTypeNameDiffId(noteType).isEmpty();
   }
 }