for (Map.Entry<String, ?> entry : filters.entrySet()) {
SimplePath<Object> property = new SimplePath<Object>(entry.getValue().getClass(), entityPath, entry.getKey());
builder.and(property.eq(entry.getValue()));
}
ComparablePath<?> sortProperty = new ComparablePath(Comparable.class, entityPath, sort);
return new JPAQuery(em).from(entityPath).where(builder.getValue()).orderBy(sortProperty.asc()).list(entityPath);
}
}