br.eti.clairton.repository.NotNull Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of repository Show documentation
Show all versions of repository Show documentation
Easiest solution to save and query JPA entities
package br.eti.clairton.repository;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Expression;
import javax.persistence.criteria.Predicate;
/**
* Cria o {@link Predicate} não nulo.
*
* @author Clairton Rodrigo Heinzen [email protected]
*/
public class NotNull implements Comparator {
private static final long serialVersionUID = 1L;
/**
* {@inheritDoc}
*/
@Override
public Predicate build(final CriteriaBuilder cb, final Expression> x, final Object y) {
return cb.isNotNull(x);
}
@Override
public String toString() {
return "!∅";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy