List of usage examples for javax.persistence.criteria CriteriaBuilder upper
Expression<String> upper(Expression<String> x);
From source file:th.co.geniustree.dental.spec.TypeProductSpec.java
public static Specification<TypeProduct> nameLike(final String keyword) { return new Specification<TypeProduct>() { @Override/*from ww w. ja va2s .c o m*/ public Predicate toPredicate(Root<TypeProduct> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(TypeProduct_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.dental.spec.UnitProductSpec.java
public static Specification<UnitProduct> nameLike(final String keyword) { return new Specification<UnitProduct>() { @Override//from w w w . ja v a2s. c om public Predicate toPredicate(Root<UnitProduct> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(UnitProduct_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.FacultySpec.java
public static Specification<Faculty> nameLike(final String keyword) { return new Specification<Faculty>() { @Override//from ww w. java 2 s .c o m public Predicate toPredicate(Root<Faculty> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Faculty_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.CategoryAdviseSpec.java
public static Specification<CategoryAdvise> nameCategoryLike(final String keyword) { return new Specification<CategoryAdvise>() { @Override/*from w ww.j a va 2s. c o m*/ public Predicate toPredicate(Root<CategoryAdvise> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(CategoryAdvise_.nameCategory)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.AppointmentSpec.java
public static Specification<Appointment> nameLike(final String keyword) { return new Specification() { @Override/* ww w. j a v a2 s .com*/ public Predicate toPredicate(Root root, CriteriaQuery cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Appointment_.student).get(Student_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.AppointmentSpec.java
public static Specification<Appointment> nameTeacherLike(final String keyword) { return new Specification() { @Override/* w w w . java2s. com*/ public Predicate toPredicate(Root root, CriteriaQuery cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Appointment_.teacher).get(Student_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.TeacherSpec.java
public static Specification<Teacher> nameLike(final String keyword) { return new Specification<Teacher>() { @Override//w w w. jav a 2 s . co m public Predicate toPredicate(Root<Teacher> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Teacher_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.intenship.advisor.spec.TeacherSpec.java
public static Specification<Teacher> emailLike(final String keyword) { return new Specification<Teacher>() { @Override//from w w w. j av a 2 s . com public Predicate toPredicate(Root<Teacher> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Teacher_.email)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.dental.spec.DepartmentSpec.java
public static Specification<Department> namelike(final String keyword) { return new Specification<Department>() { @Override//from w w w . j a v a2s. c o m public Predicate toPredicate(Root<Department> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(Department_.name)), keyword.toUpperCase()); } }; }
From source file:th.co.geniustree.dental.spec.ListSelectHealSpec.java
public static Specification<ListSelectHeal> nameLike(final String keyword) { return new Specification<ListSelectHeal>() { @Override//from w ww. ja v a2 s .co m public Predicate toPredicate(Root<ListSelectHeal> root, CriteriaQuery<?> cq, CriteriaBuilder cb) { return cb.like(cb.upper(root.get(ListSelectHeal_.name)), keyword.toUpperCase()); } }; }