code clean

This commit is contained in:
Patrick Haßel 2024-09-11 15:59:26 +02:00
parent 4ade9787db
commit 80e61a5c6c
2 changed files with 4 additions and 5 deletions

View File

@ -2,10 +2,6 @@
<td class="empty">-</td> <td class="empty">-</td>
</ng-template> </ng-template>
<div class="config">
<button (click)="create()">+ Hinzufügen</button>
</div>
<table> <table>
<tr> <tr>
<th>Bezeichnung</th> <th>Bezeichnung</th>
@ -98,3 +94,7 @@
</tr> </tr>
</ng-container> </ng-container>
</table> </table>
<div class="config">
<button (click)="create()">+ Hinzufügen</button>
</div>

View File

@ -23,7 +23,6 @@ public class RepositorySearchHelper {
.replaceAll("([A-Z])([A-Z])", "$1 $2") .replaceAll("([A-Z])([A-Z])", "$1 $2")
.replaceAll("([a-z])([A-Z])", "$1 $2") .replaceAll("([a-z])([A-Z])", "$1 $2")
.toLowerCase(Locale.ROOT); .toLowerCase(Locale.ROOT);
System.out.println(term2);
final List<Predicate> predicates = Arrays.stream(term2.split("\\s")) final List<Predicate> predicates = Arrays.stream(term2.split("\\s"))
.filter(word -> !word.isEmpty()) .filter(word -> !word.isEmpty())
.map(word -> criteriaBuilder.like(field, "%" + word + "%")) .map(word -> criteriaBuilder.like(field, "%" + word + "%"))