@@ -160,7 +160,7 @@ public class QueryByExamplePredicateBuilder {
|
||||
PathNode node = currentNode.add(attribute.getName(), attributeValue);
|
||||
if (node.spansCycle()) {
|
||||
throw new InvalidDataAccessApiUsageException(
|
||||
String.format("Path '%s' from root %s must not span a cyclic property reference!\r\n%s", currentPath,
|
||||
String.format("Path '%s' from root %s must not span a cyclic property reference!%n%s", currentPath,
|
||||
ClassUtils.getShortName(probeType), node));
|
||||
}
|
||||
|
||||
|
||||
@@ -333,6 +333,7 @@ class JpaPersistentPropertyImpl extends AnnotationBasedPersistentProperty<JpaPer
|
||||
continue;
|
||||
}
|
||||
|
||||
// may cause NullPointerException if the returned value is null
|
||||
return (boolean) AnnotationUtils.getValue(annotation, "updatable");
|
||||
}
|
||||
|
||||
|
||||
@@ -266,8 +266,6 @@ class StringQuery implements DeclaredQuery {
|
||||
String expression = spelExtractor.getParameter(parameterName == null ? parameterIndexString : parameterName);
|
||||
String replacement = null;
|
||||
|
||||
Assert.isTrue(parameterIndexString != null || parameterName != null, () -> String.format("We need either a name or an index! Offending query string: %s", query));
|
||||
|
||||
expressionParameterIndex++;
|
||||
if ("".equals(parameterIndexString)) {
|
||||
|
||||
@@ -293,7 +291,7 @@ class StringQuery implements DeclaredQuery {
|
||||
} else {
|
||||
checkAndRegister(new LikeParameterBinding(parameterName, likeType, expression), bindings);
|
||||
|
||||
replacement = expression != null ? ":" + parameterName : matcher.group(5);
|
||||
replacement = ":" + parameterName;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user