diff --git a/packages/java/endpoint/pom.xml b/packages/java/endpoint/pom.xml index 13f9548458..c9f0bd4f4d 100644 --- a/packages/java/endpoint/pom.xml +++ b/packages/java/endpoint/pom.xml @@ -39,6 +39,10 @@ com.vaadin flow-server + + com.vaadin + vaadin-spring + com.vaadin hilla-engine-core diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CountService.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CountService.java index cf7b0dd7bf..5dd1584508 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CountService.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CountService.java @@ -7,7 +7,10 @@ /** * A browser-callable service that can count the given type of objects with a * given filter. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.CountService} instead */ +@Deprecated(forRemoval = true) public interface CountService { /** diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CrudRepositoryService.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CrudRepositoryService.java index f28f9a16c0..3ebe68c02f 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CrudRepositoryService.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CrudRepositoryService.java @@ -12,7 +12,11 @@ /** * A browser-callable service that delegates crud operations to a JPA * repository. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.jpa.CrudRepositoryService} + * instead */ +@Deprecated(forRemoval = true) @EndpointExposed public class CrudRepositoryService & JpaSpecificationExecutor> extends ListRepositoryService implements CrudService { diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CrudService.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CrudService.java index 06ac2dc99c..52d8e9199e 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CrudService.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/CrudService.java @@ -3,6 +3,9 @@ /** * A browser-callable service that can create, read, update, and delete a given * type of object. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.CrudService} instead */ +@Deprecated(forRemoval = true) public interface CrudService extends ListService, FormService { } diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/GetService.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/GetService.java index 540e801826..a555621e59 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/GetService.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/GetService.java @@ -4,7 +4,10 @@ /** * A browser-callable service that can fetch the given type of object. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.GetService} instead */ +@Deprecated(forRemoval = true) public interface GetService { /** diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/JpaFilterConverter.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/JpaFilterConverter.java index d3840b2404..23d8f77b6e 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/JpaFilterConverter.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/JpaFilterConverter.java @@ -12,7 +12,11 @@ * filter specifications. This class can be used to implement filtering for * custom {@link ListService} or {@link CrudService} implementations that use * JPA as the data source. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.jpa.JpaFilterConverter} + * instead */ +@Deprecated(forRemoval = true) public final class JpaFilterConverter { private JpaFilterConverter() { diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListRepositoryService.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListRepositoryService.java index 8ebfb63f31..670c627cb0 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListRepositoryService.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListRepositoryService.java @@ -21,7 +21,11 @@ /** * A browser-callable service that delegates list operations to a JPA * repository. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.jpa.ListRepositoryService} + * instead */ +@Deprecated(forRemoval = true) @EndpointExposed public class ListRepositoryService & JpaSpecificationExecutor> implements ListService, GetService, CountService { diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListService.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListService.java index af8baf3140..d5c8184e31 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListService.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/ListService.java @@ -10,7 +10,10 @@ /** * A browser-callable service that can list the given type of object. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.ListService} instead */ +@Deprecated(forRemoval = true) public interface ListService { /** * Lists objects of the given type using the paging, sorting and filtering diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/AndFilter.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/AndFilter.java index bd1b1a2bc6..5481d816b3 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/AndFilter.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/AndFilter.java @@ -7,7 +7,10 @@ *

* Custom filter implementations need to handle this filter by running all child * filters and verifying that all of them pass. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.filter.AndFilter} instead */ +@Deprecated(forRemoval = true) public class AndFilter extends Filter { private List children; diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/Filter.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/Filter.java index 20a2353ca7..886e139d35 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/Filter.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/Filter.java @@ -15,11 +15,14 @@ *

  • {@link PropertyStringFilter} - Matches a specific property, or nested * property path, against a filter value, using a specific operator.
  • * + * + * @deprecated Use {@link com.vaadin.flow.spring.data.filter.Filter} instead */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY) @JsonSubTypes({ @Type(value = OrFilter.class, name = "or"), @Type(value = AndFilter.class, name = "and"), @Type(value = PropertyStringFilter.class, name = "propertyString") }) +@Deprecated(forRemoval = true) public class Filter { } diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/OrFilter.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/OrFilter.java index ddd53231e5..a0b90d7ecc 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/OrFilter.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/OrFilter.java @@ -7,7 +7,10 @@ *

    * Custom filter implementations need to handle this filter by running all child * filters and verifying that at least one of them passes. + * + * @deprecated Use {@link com.vaadin.flow.spring.data.filter.OrFilter} instead */ +@Deprecated(forRemoval = true) public class OrFilter extends Filter { private List children; diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/PropertyStringFilter.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/PropertyStringFilter.java index b66a523279..4cdc1cd226 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/PropertyStringFilter.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/crud/filter/PropertyStringFilter.java @@ -14,7 +14,12 @@ *

  • Do the actual comparison using the matcher / operator provided by * {@link #getMatcher()}
  • * + * + * @deprecated Use + * {@link com.vaadin.flow.spring.data.filter.PropertyStringFilter} + * instead */ +@Deprecated(forRemoval = true) public class PropertyStringFilter extends Filter { public enum Matcher { EQUALS, CONTAINS, LESS_THAN, GREATER_THAN; diff --git a/packages/java/tests/csrf-context/pom.xml b/packages/java/tests/csrf-context/pom.xml index 4e07104e71..1b32ca941d 100644 --- a/packages/java/tests/csrf-context/pom.xml +++ b/packages/java/tests/csrf-context/pom.xml @@ -31,6 +31,17 @@ hilla ${project.version}
    + + com.vaadin + hilla-endpoint + ${project.version} + + + com.vaadin + vaadin-spring + + + org.slf4j slf4j-simple diff --git a/packages/java/tests/csrf/pom.xml b/packages/java/tests/csrf/pom.xml index 090acef9c6..adb59ef0a9 100644 --- a/packages/java/tests/csrf/pom.xml +++ b/packages/java/tests/csrf/pom.xml @@ -25,6 +25,17 @@ hilla ${project.version} + + com.vaadin + hilla-endpoint + ${project.version} + + + com.vaadin + vaadin-spring + + + junit junit