Skip to content
This repository has been archived by the owner on Apr 6, 2018. It is now read-only.

Commit

Permalink
#399 - Fixed signature of @specifications@.
Browse files Browse the repository at this point in the history
* fixes #399
  • Loading branch information
odrotbohm committed Nov 3, 2010
1 parent b8f548b commit 9419ebd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hades/src/main/java/org/synyx/hades/domain/Specifications.java
Expand Up @@ -63,10 +63,11 @@ public static <T> Specifications<T> where(Specification<T> spec) {
* @param other
* @return
*/
public Specification<T> and(final Specification<T> other) {
public Specifications<T> and(final Specification<T> other) {

return new Specification<T>() {
return new Specifications<T>(spec) {

@Override
public Predicate toPredicate(Root<T> root, CriteriaQuery<?> query,
CriteriaBuilder builder) {

Expand All @@ -83,10 +84,11 @@ public Predicate toPredicate(Root<T> root, CriteriaQuery<?> query,
* @param other
* @return
*/
public Specification<T> or(final Specification<T> other) {
public Specifications<T> or(final Specification<T> other) {

return new Specification<T>() {
return new Specifications<T>(spec) {

@Override
public Predicate toPredicate(Root<T> root, CriteriaQuery<?> query,
CriteriaBuilder builder) {

Expand Down

0 comments on commit 9419ebd

Please sign in to comment.