setStudentItem(item);
setUpdateItem(true);
}
public List<Tutor> findTutor(String name){
DAOTutor daoTutor = DAOTutor.getInstance();
Query<Tutor> query = daoTutor.getDs().createQuery(Tutor.class);
query.or(
query.criteria("firstname").equal(Pattern.compile(name, Pattern.CASE_INSENSITIVE)),
query.criteria("lastname").equal(Pattern.compile(name, Pattern.CASE_INSENSITIVE))
);
return query.asList();