fix two very minor bugs in generated newlines
This commit is contained in:
parent
c3bbd193c8
commit
0e3791cb64
|
@ -376,7 +376,8 @@ public abstract class AbstractQueryMethod implements MetaAttribute {
|
||||||
.append(MAKE_KEYED_PAGE
|
.append(MAKE_KEYED_PAGE
|
||||||
.replace("pageRequest",
|
.replace("pageRequest",
|
||||||
parameterName(JD_PAGE_REQUEST, paramTypes, paramNames))
|
parameterName(JD_PAGE_REQUEST, paramTypes, paramNames))
|
||||||
.replace("Entity", annotationMetaEntity.importType(returnTypeName)));
|
.replace("Entity", annotationMetaEntity.importType(returnTypeName)))
|
||||||
|
.append('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -646,7 +647,7 @@ public abstract class AbstractQueryMethod implements MetaAttribute {
|
||||||
.append(annotationMetaEntity.importType("jakarta.data.page.impl.PageRecord"))
|
.append(annotationMetaEntity.importType("jakarta.data.page.impl.PageRecord"))
|
||||||
.append('(')
|
.append('(')
|
||||||
.append(parameterName(JD_PAGE_REQUEST, paramTypes, paramNames))
|
.append(parameterName(JD_PAGE_REQUEST, paramTypes, paramNames))
|
||||||
.append(", _results, _totalResults);\n");
|
.append(", _results, _totalResults);");
|
||||||
break;
|
break;
|
||||||
case JD_CURSORED_PAGE:
|
case JD_CURSORED_PAGE:
|
||||||
if ( returnTypeName == null ) {
|
if ( returnTypeName == null ) {
|
||||||
|
|
|
@ -112,10 +112,6 @@ public class CriteriaFinderMethod extends AbstractFinderMethod {
|
||||||
final boolean mustUnwrap =
|
final boolean mustUnwrap =
|
||||||
containerType != null && containerType.startsWith("org.hibernate");
|
containerType != null && containerType.startsWith("org.hibernate");
|
||||||
executeSelect( declaration, paramTypes, containerType, unwrapped, mustUnwrap );
|
executeSelect( declaration, paramTypes, containerType, unwrapped, mustUnwrap );
|
||||||
if ( dataRepository ) {
|
|
||||||
declaration
|
|
||||||
.append('\n');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createCriteriaQuery(StringBuilder declaration) {
|
private void createCriteriaQuery(StringBuilder declaration) {
|
||||||
|
|
Loading…
Reference in New Issue