I have a Template
class with several fields (id,name,description,created,modified....)
and can filter by created date like below:
public interface TemplateRepository extends JpaRepository<Template, Long> {
Page<Template> findAllByCreatedBetween(OffsetDateTime createdStart, OffsetDateTime createdEnd, Pageable pageable);
}
My Example like this:
ExampleMatcher exampleMatcher = ExampleMatcher.matchingAll()
.withIgnoreCase()
.withStringMatcher(ExampleMatcher.StringMatcher.CONTAINING)
.withIgnoreNullValues()
.withIgnorePaths("id");
Example<Template> templateExample = Example.of(requestTemplate, exampleMatcher);
Is there any possible way to add the Example into findAllByCreatedBetween
method?