falta presupuesto marcapaginas y maquetacion y revision general en admin. revisar user

This commit is contained in:
2025-10-12 14:48:20 +02:00
parent 62dcff8869
commit 6641c1f077
10 changed files with 288 additions and 360 deletions

View File

@ -23,9 +23,15 @@ public class DataTablesSpecification {
DataTablesRequest.Column col = dt.columns.get(i);
if (col.searchable && col.search != null && col.search.value != null && !col.search.value.isEmpty()) {
try {
ands.add(like(cb, root.get(col.name), col.search.value));
Path<?> path = root;
String[] parts = col.name.split("\\.");
for (String part : parts) {
path = path.get(part);
}
ands.add(like(cb, path, col.search.value));
} catch (IllegalArgumentException ex) {
// columna no mapeada o relación: la ignoramos
System.out.println("[DT] columna no mapeada o relación: " + col.name);
}
}
}