* @author Petri Kainulainen
*/
public class TodoPredicates {
public static Predicate titleOrDescriptionContains(String searchTerm) {
QTodo todo = QTodo.todo;
return todo.title.containsIgnoreCase(searchTerm)
.or(todo.description.containsIgnoreCase(searchTerm));
}