minor formatting cleanup

This commit is contained in:
eugenp 2015-01-28 11:19:10 +02:00
parent 3788b264ff
commit f479bc8a21
2 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class UserSpecification implements Specification<User> {
return builder.lessThanOrEqualTo(root.<String> get(criteria.getKey()), criteria.getValue().toString());
} else if (criteria.getOperation().equalsIgnoreCase(":")) {
if (root.get(criteria.getKey()).getJavaType() == String.class) {
return builder.like(root.<String>get(criteria.getKey()), "%" + criteria.getValue() + "%");
return builder.like(root.<String> get(criteria.getKey()), "%" + criteria.getValue() + "%");
} else {
return builder.equal(root.get(criteria.getKey()), criteria.getValue());
}

View File

@ -34,4 +34,3 @@ public class MyUserService {
repository.save(user);
}
}