@Override public boolean isTypeExist(NoteType noteType) { if (noteType.getId() == null) { return !typeDAO.selectByNameParentType(noteType).isEmpty(); } else { return !typeDAO.selectByParentTypeNameDiffId(noteType).isEmpty(); } }
@Override public boolean isTypeExist(NoteType noteType) { if (noteType.getId() == null) { return !typeDAO.selectByNameParentType(noteType).isEmpty(); } else { return !typeDAO.selectByParentTypeNameDiffId(noteType).isEmpty(); } }