-
Notifications
You must be signed in to change notification settings - Fork 691
Closed as not planned
Labels
in: coreIssues in core supportIssues in core supportstatus: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: bugA general bugA general bug
Description
Jan Prach opened DATACMNS-938 and commented
createPath in org.springframework.data.querydsl.SimpleEntityPathResolver will fail for scala querydsl generated classes. The reason is that static methods in scala are "object" methods and the object has naming convention pathClassName + "$". Hence the fix is easy - just add to createPath following:
if (field == null) {
String scalaObjectPathClassName = pathClassName + "$";
pathClass = ClassUtils.forName(scalaObjectPathClassName, domainClass.getClassLoader());
field = getStaticFieldOfType(pathClass);
}
Affects: 1.12.5 (Hopper SR5)
Metadata
Metadata
Assignees
Labels
in: coreIssues in core supportIssues in core supportstatus: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: bugA general bugA general bug