fix two very minor bugs in generated newlines

This commit is contained in:
Gavin King 2024-03-09 19:48:22 +01:00
parent c3bbd193c8
commit 0e3791cb64
2 changed files with 3 additions and 6 deletions

View File

@ -376,7 +376,8 @@ public abstract class AbstractQueryMethod implements MetaAttribute {
.append(MAKE_KEYED_PAGE
.replace("pageRequest",
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('(')
.append(parameterName(JD_PAGE_REQUEST, paramTypes, paramNames))
.append(", _results, _totalResults);\n");
.append(", _results, _totalResults);");
break;
case JD_CURSORED_PAGE:
if ( returnTypeName == null ) {

View File

@ -112,10 +112,6 @@ public class CriteriaFinderMethod extends AbstractFinderMethod {
final boolean mustUnwrap =
containerType != null && containerType.startsWith("org.hibernate");
executeSelect( declaration, paramTypes, containerType, unwrapped, mustUnwrap );
if ( dataRepository ) {
declaration
.append('\n');
}
}
private void createCriteriaQuery(StringBuilder declaration) {