Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Dec 18, 2024
1 parent 5163a3c commit 7645905
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.vaadin.flow.spring.data.filter.PropertyStringFilter;

/**
* Utility class for converting {@link Filter} specifications into JPA
* filter specifications. This class can be used to implement filtering for
* custom {@link com.vaadin.flow.spring.data.ListService} or
* Utility class for converting {@link Filter} specifications into JPA filter
* specifications. This class can be used to implement filtering for custom
* {@link com.vaadin.flow.spring.data.ListService} or
* {@link com.vaadin.flow.spring.data.CrudService} implementations that use JPA
* as the data source.
*/
Expand All @@ -19,6 +19,7 @@ public final class JpaFilterConverter {
private JpaFilterConverter() {
// Utilities only
}

/**
* Converts the given filter specification into a JPA filter specification
* for the specified entity class.
Expand All @@ -36,7 +37,8 @@ private JpaFilterConverter() {
* the entity class
* @return a JPA filter specification for the given filter
*/
public static <T> Specification<T> toSpec(Filter rawFilter, Class<T> entity) {
public static <T> Specification<T> toSpec(Filter rawFilter,
Class<T> entity) {
if (rawFilter == null) {
return Specification.anyOf();
}
Expand Down

0 comments on commit 7645905

Please sign in to comment.