title: Springboot Date could not determine data type of parameter
body: <p>This is my Employee class :</p>
  <pre><code>@NoArgsConstructor
  @AllArgsConstructor
  @Data
  @Builder
  @Entity
  @Table(name = &quot;employee&quot;)
  public class Employee {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Integer id;
  
      @NotBlank
      @Column(name=&quot;national_id&quot;)
      private String nationalId;
  
      @NotBlank
      private String name;
  
      @NotBlank
      private String surname;
  
      private Integer salary;
  
      @Column(name=&quot;start_date&quot;)
      @JsonFormat(pattern=&quot;yyyy-MM-dd&quot;)
      private Date startDate;
  
      private String office;
  
      private String department;
  </code></pre>
  <p>This is my repository class :</p>
  <pre><code>public interface EmployeeRepository extends JpaRepository &lt;Employee,Integer&gt;, QueryByExampleExecutor&lt;Employee&gt; {
  
  @Transactional
      @Modifying
      @Query(&quot;Select e FROM Employee e  &quot;  +
              &quot;where &quot; +
              &quot; (:startDate is NULL or e.startDate &gt; :startDate) &quot; +
              &quot; AND &quot; +
              &quot; (:salary is NULL or e.salary &gt; :salary) &quot;)
      List&lt;Employee&gt; searchEmployees(@Param(value = &quot;startDate&quot;) Date startDate, @Param(value = &quot;salary&quot;) Integer salary);
  </code></pre>
  <p>When I try to run this query I get this error : could not determine data type of parameter $1</p>
  <p>I think it's because of postgreSQL.On the one side, there is the timestamp and on the other side the timestamptz with timezone information.</p>
  <p>What can I do for this problem?</p>