title: How to manipulate column value and use it for condition using JPA Specification and Spring Boot
body: <pre><code>Specification&lt;CngUserEntity&gt; spec = (root, query, criteriaBuilder) -&gt; criteriaBuilder.between(
  DateUtility.getSecureDate(root.get(&quot;secureDateAsBytes&quot;))
      .toInstant()
      .atZone(ZoneId.systemDefault())
      .toLocalDate(), fromDate, toDate);
  </code></pre>
  <p>I want to convert secure date to localDate and then use that date to check date range filter.
  How to achieve this ?</p>
  <p>Also, This specification will be used for paginated list.</p>