@@ -60,6 +60,7 @@ import com.querydsl.core.types.Path;
|
||||
* @author Christoph Strobl
|
||||
* @author Oliver Gierke
|
||||
* @author Mark Paluch
|
||||
* @author Johannes Englmeier
|
||||
* @since 1.11
|
||||
* @see QuerydslBinderCustomizer
|
||||
*/
|
||||
@@ -357,7 +358,7 @@ public class QuerydslBindings {
|
||||
Path<?> rootPath = path.getMetadata().getRootPath();
|
||||
|
||||
if (rootPath == null) {
|
||||
throw new IllegalStateException(String.format("Couldn't find root path on path %s!", path));
|
||||
throw new IllegalStateException(String.format("Couldn't find root path on path %s", path));
|
||||
}
|
||||
|
||||
return path.toString().substring(rootPath.getMetadata().getName().length() + 1);
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.querydsl.core.types.dsl.SimpleExpression;
|
||||
* @author Christoph Strobl
|
||||
* @author Oliver Gierke
|
||||
* @author Colin Gao
|
||||
* @author Johannes Englmeier
|
||||
* @since 1.11
|
||||
*/
|
||||
class QuerydslDefaultBinding implements MultiValueBinding<Path<? extends Object>, Object> {
|
||||
@@ -78,6 +79,6 @@ class QuerydslDefaultBinding implements MultiValueBinding<Path<? extends Object>
|
||||
}
|
||||
|
||||
throw new IllegalArgumentException(
|
||||
String.format("Cannot create predicate for path '%s' with type '%s'.", path, path.getMetadata().getPathType()));
|
||||
String.format("Cannot create predicate for path '%s' with type '%s'", path, path.getMetadata().getPathType()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ import com.querydsl.core.types.Path;
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Mark Paluch
|
||||
* @author Johannes Englmeier
|
||||
* @since 1.13
|
||||
*/
|
||||
class QuerydslPathInformation implements PathInformation {
|
||||
@@ -60,7 +61,7 @@ class QuerydslPathInformation implements PathInformation {
|
||||
Path<?> parent = path.getMetadata().getParent();
|
||||
|
||||
if (parent == null) {
|
||||
throw new IllegalStateException(String.format("Could not obtain metadata for parent node of %s!", path));
|
||||
throw new IllegalStateException(String.format("Could not obtain metadata for parent node of %s", path));
|
||||
}
|
||||
|
||||
return parent.getType();
|
||||
|
||||
@@ -47,6 +47,7 @@ import com.querydsl.core.types.Predicate;
|
||||
* @author Christoph Strobl
|
||||
* @author Oliver Gierke
|
||||
* @author Mark Paluch
|
||||
* @author Johannes Englmeier
|
||||
* @since 1.11
|
||||
*/
|
||||
public class QuerydslPredicateBuilder {
|
||||
@@ -224,7 +225,7 @@ public class QuerydslPredicateBuilder {
|
||||
.nested(new Property(owningType, descriptor.getReadMethod(), descriptor.getWriteMethod(), leafProperty), 0);
|
||||
|
||||
if (result == null) {
|
||||
throw new IllegalStateException(String.format("Could not obtain TypeDescriptor for PathInformation %s!", path));
|
||||
throw new IllegalStateException(String.format("Could not obtain TypeDescriptor for PathInformation %s", path));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user