DATAJPA-300 - Javadoc on Specification.
Javadoc of Specification.toPredicate() now correctly states that it may return null.
This commit is contained in:
committed by
Jens Schauder
parent
2d2fbd7fde
commit
6aa1beb061
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2008-2014 the original author or authors.
|
* Copyright 2008-2017 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -25,6 +25,7 @@ import javax.persistence.criteria.Root;
|
|||||||
*
|
*
|
||||||
* @author Oliver Gierke
|
* @author Oliver Gierke
|
||||||
* @author Thomas Darimont
|
* @author Thomas Darimont
|
||||||
|
* @author Krzysztof Rzymkowski
|
||||||
*/
|
*/
|
||||||
public interface Specification<T> {
|
public interface Specification<T> {
|
||||||
|
|
||||||
@@ -34,7 +35,7 @@ public interface Specification<T> {
|
|||||||
*
|
*
|
||||||
* @param root
|
* @param root
|
||||||
* @param query
|
* @param query
|
||||||
* @return a {@link Predicate}, must not be {@literal null}.
|
* @return a {@link Predicate}, may be {@literal null}.
|
||||||
*/
|
*/
|
||||||
Predicate toPredicate(Root<T> root, CriteriaQuery<?> query, CriteriaBuilder cb);
|
Predicate toPredicate(Root<T> root, CriteriaQuery<?> query, CriteriaBuilder cb);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user