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
|
||||
.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 ) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue