Package net.petrikainulainen.spring.datajpa.todo.model

Examples of net.petrikainulainen.spring.datajpa.todo.model.QTodo


* @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));
    }
View Full Code Here

TOP

Related Classes of net.petrikainulainen.spring.datajpa.todo.model.QTodo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.